/**
 * Resolve conflicting .hero rules merged from multiple static HTML sources.
 * Primary language: English — body classes set in inc/setup.php
 */
body.dmw-template-home .hero {
	min-height: 100vh;
}

body.dmw-template-dress-code .hero {
	min-height: 75vh;
}

body.dmw-template-where-to-stay .hero,
body.dmw-template-timeline .hero,
body.dmw-template-what-to-do .hero,
body.dmw-template-how-to-arrive .hero {
	min-height: 70vh;
}

/* Arrive page: show Travel Tips in one row (4 columns) on desktop. */
@media (min-width: 992px) {
	body.dmw-template-how-to-arrive .tips-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-rows: 1fr;
	}
}

/* Home hero fallback fills viewport; subpages override via .hero min-height + .hero-image child. */
body.dmw-template-home .hero .dmw-hero-fallback {
	width: 100%;
	height: 100%;
	min-height: 100vh;
	background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark), var(--gold-dark));
}

.hero-image .dmw-hero-fallback {
	width: 100%;
	height: 100%;
	min-height: 100%;
	background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark), var(--gold-dark));
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

/* No dark hero behind the bar: start in “scrolled” nav colors (page.php, 404, blog index, etc.). */
body.dmw-nav-solid-start .ds-nav {
	background: rgba(250, 250, 248, 0.92);
	backdrop-filter: blur(30px);
	-webkit-backdrop-filter: blur(30px);
	border-bottom: 1px solid rgba(185, 157, 111, 0.12);
	padding: 14px 48px;
}

body.dmw-nav-solid-start .ds-nav-logo,
body.dmw-nav-solid-start .ds-nav:not(.scrolled) .ds-nav-logo {
	color: var(--blue-deep);
}

body.dmw-nav-solid-start .ds-nav-links a,
body.dmw-nav-solid-start .ds-nav:not(.scrolled) .ds-nav-links a {
	color: var(--cool-gray);
}

body.dmw-nav-solid-start .ds-nav-links a:hover,
body.dmw-nav-solid-start .ds-nav:not(.scrolled) .ds-nav-links a:hover {
	color: var(--blue);
}

body.dmw-nav-solid-start .nav-toggle span,
body.dmw-nav-solid-start .ds-nav:not(.scrolled) .nav-toggle span {
	background: var(--blue-deep);
}

@media (max-width: 768px) {
	body.dmw-nav-solid-start .ds-nav {
		padding: 12px 24px;
	}
}

.nav-toggle:focus-visible,
.ds-nav-links a:focus-visible,
.ds-nav-logo:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 4px;
}

/* Footer: semantic classes (replaces fragile inline-only styling). */
.dmw-footer-inner {
	position: relative;
	z-index: 1;
}

.dmw-footer-date {
	font-family: var(--font-secondary);
	font-weight: 400;
	font-size: 12px;
	letter-spacing: 5px;
	text-transform: uppercase;
	color: var(--gold-light);
	margin-bottom: var(--space-lg);
}

.dmw-footer-mono {
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: clamp(32px, 5vw, 48px);
	color: #fff;
	line-height: 1;
	margin-bottom: var(--space-md);
}

.dmw-footer-location {
	color: rgba(255, 255, 255, 0.4);
	font-family: var(--font-secondary);
	font-weight: 400;
	font-size: 13px;
	line-height: 1.8;
	margin-top: var(--space-lg);
}

.dmw-footer-tagline {
	color: rgba(255, 255, 255, 0.2);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 1px;
	margin-top: var(--space-xl);
}

/* Current page in menu: show gold underline without hover (matches static site intent). */
.ds-nav-links li.current-menu-item > a::after,
.ds-nav-links li.current_page_item > a::after {
	width: 100%;
}

body:not(.dmw-nav-solid-start) .ds-nav:not(.scrolled) .ds-nav-links li.current-menu-item > a,
body:not(.dmw-nav-solid-start) .ds-nav:not(.scrolled) .ds-nav-links li.current_page_item > a {
	color: var(--gold-light);
}

body.dmw-nav-solid-start .ds-nav-links li.current-menu-item > a,
body.dmw-nav-solid-start .ds-nav-links li.current_page_item > a {
	color: var(--blue-deep);
	font-weight: 500;
}

body:not(.dmw-nav-solid-start) .ds-nav.scrolled .ds-nav-links li.current-menu-item > a,
body:not(.dmw-nav-solid-start) .ds-nav.scrolled .ds-nav-links li.current_page_item > a {
	color: var(--blue);
	font-weight: 500;
}

/* Stay page: dark tips band (later merged CSS targets light cards for Arrive). */
body.dmw-template-where-to-stay .tips-section .tips-grid {
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	margin-top: var(--space-2xl);
}

body.dmw-template-where-to-stay .tips-section .tip-card {
	text-align: center;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: none;
}

body.dmw-template-where-to-stay .tips-section .tip-card:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--gold);
	border-left-color: var(--gold);
	box-shadow: none;
}

body.dmw-template-where-to-stay .tips-section .tip-icon svg {
	width: 40px;
	height: 40px;
	color: var(--gold-light);
}

body.dmw-template-where-to-stay .tips-section .tip-text {
	font-family: var(--font-secondary);
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.8;
}

/* Stay page: tighten large white gaps between intro and cards. */
body.dmw-template-where-to-stay .intro {
	padding: clamp(64px, 9vw, 96px) 0 clamp(36px, 6vw, 56px);
}

body.dmw-template-where-to-stay .venue-card {
	margin: var(--space-xl) auto var(--space-xl);
}

body.dmw-template-where-to-stay .accommodation-section {
	padding-top: clamp(40px, 6vw, 64px);
}

body.dmw-template-where-to-stay .accommodation-section .acc-grid {
	margin-top: var(--space-xl);
}

@media (max-width: 768px) {
	body.dmw-template-where-to-stay .tips-section .tips-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		gap: var(--space-lg);
	}

	body.dmw-template-where-to-stay .tips-section .tip-card {
		padding: var(--space-lg);
	}

	body.dmw-template-where-to-stay .tips-section .tip-text {
		font-size: 16px;
		line-height: 1.65;
		word-break: normal;
		overflow-wrap: break-word;
		hyphens: auto;
	}

	/* Keep content visible behind fixed RSVP button on small screens. */
	body.dmw-template-where-to-stay .tips-section {
		padding-bottom: calc(var(--space-3xl) + 72px);
	}
}

/* Global floating RSVP trigger + corner modal */
.dmw-floating-rsvp-btn {
	position: fixed;
	right: 20px;
	bottom: 22px;
	z-index: 10010;
	border: 1px solid rgba(185, 157, 111, 0.45);
	background: rgba(250, 250, 248, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: var(--blue-deep);
	font-family: var(--font-secondary);
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 11px 14px;
	border-radius: 999px;
	cursor: pointer;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dmw-floating-rsvp-btn:hover {
	transform: translateY(-2px);
	border-color: var(--gold);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dmw-floating-rsvp-btn:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.rsvp-modal {
	align-items: flex-end;
	justify-content: flex-end;
	background: transparent;
	padding: 0 20px 80px;
}

.rsvp-modal-box {
	width: min(360px, calc(100vw - 40px));
	max-width: 360px;
	padding: var(--space-xl) var(--space-lg);
	border: 1px solid rgba(185, 157, 111, 0.25);
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(10, 10, 11, 0.25);
}

@media (max-width: 768px) {
	.dmw-floating-rsvp-btn {
		right: 14px;
		bottom: 14px;
		font-size: 9px;
		letter-spacing: 1.5px;
		padding: 10px 12px;
	}

	.rsvp-modal {
		padding: 0 12px 68px;
	}

	.rsvp-modal-box {
		width: calc(100vw - 24px);
		max-width: none;
	}
}

.dmw-lang-switch {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: 14px;
}

.dmw-lang-switch a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 22px;
	border-radius: 999px;
	border: 1px solid rgba(185, 157, 111, 0.4);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 1px;
	color: var(--blue-deep);
	text-decoration: none;
	background: rgba(250, 250, 248, 0.86);
}

body:not(.dmw-nav-solid-start) .ds-nav:not(.scrolled) .dmw-lang-switch a {
	color: var(--white);
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.35);
}

.dmw-lang-switch a.is-active {
	border-color: var(--gold);
	color: var(--gold);
}

.dmw-lang-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10030;
	background: rgba(10, 10, 11, 0.35);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.dmw-lang-modal.active {
	display: flex;
}

.dmw-lang-modal-box {
	width: min(320px, calc(100vw - 32px));
	background: var(--offwhite);
	border: 1px solid rgba(185, 157, 111, 0.25);
	border-radius: 14px;
	padding: 16px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.dmw-lang-modal-box h3 {
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 24px;
	color: var(--blue-deep);
	margin: 0 0 12px;
}

.dmw-lang-modal-actions {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
}

.dmw-lang-modal-actions a {
	flex: 1;
	text-decoration: none;
	text-align: center;
	border: 1px solid rgba(185, 157, 111, 0.4);
	border-radius: 999px;
	padding: 10px;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--blue-deep);
}

.dmw-lang-modal-close {
	width: 100%;
	border: none;
	border-radius: 999px;
	padding: 10px;
	background: var(--blue-deep);
	color: var(--white);
	font-family: var(--font-secondary);
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}

@media (max-width: 768px) {
	.ds-nav-inner {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.ds-nav-logo {
		margin-right: auto;
	}

	.dmw-lang-switch {
		position: static;
		order: 2;
		margin: 0 4px 0 0;
		gap: 4px;
	}

	.dmw-lang-switch a {
		min-width: 24px;
		height: 20px;
		font-size: 9px;
		letter-spacing: 0.6px;
	}

	.nav-toggle {
		order: 3;
	}
}

.dmw-home-essentials {
	background: linear-gradient(135deg, #11355a 0%, #1f456f 100%);
	padding: clamp(32px, 6vw, 72px) 0;
}

.dmw-home-essentials-card {
	background: rgba(12, 35, 58, 0.72);
	border: 1px solid rgba(185, 157, 111, 0.45);
	border-radius: 0;
	padding: clamp(24px, 4vw, 44px);
	text-align: center;
	box-shadow: 0 18px 50px rgba(6, 18, 32, 0.35);
}

.dmw-home-essentials-eyebrow {
	font-family: var(--font-secondary);
	font-size: 12px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--gold-light);
	margin-bottom: 18px;
}

.dmw-home-essentials-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 20px;
}

.dmw-home-essentials-item {
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 0;
	padding: 14px;
	background: rgba(255, 255, 255, 0.03);
}

.dmw-home-essentials-label {
	font-family: var(--font-secondary);
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--gold-light);
	margin-bottom: 8px;
}

.dmw-home-essentials-value {
	font-family: var(--font-primary);
	font-size: clamp(18px, 2vw, 24px);
	line-height: 1.35;
	color: #f8f5ef;
}

.dmw-event-info-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10040;
	background: rgba(9, 14, 23, 0.62);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.dmw-event-info-modal.active {
	display: flex;
}

.dmw-event-info-modal-box {
	width: min(640px, calc(100vw - 30px));
	background: linear-gradient(145deg, #0f2e4f, #1d446d);
	border: 1px solid rgba(185, 157, 111, 0.45);
	border-radius: 0;
	padding: 24px;
	box-shadow: 0 20px 60px rgba(5, 13, 24, 0.5);
	position: relative;
	color: #f8f5ef;
}

.dmw-event-info-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: none;
	background: transparent;
	color: #f8f5ef;
	font-size: 26px;
	cursor: pointer;
}

.dmw-event-info-eyebrow {
	font-family: var(--font-secondary);
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--gold-light);
	margin-bottom: 8px;
}

.dmw-event-info-title {
	font-family: var(--font-primary);
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.1;
	margin-bottom: 16px;
}

.dmw-event-info-list {
	display: grid;
	gap: 10px;
	margin-bottom: 18px;
}

.dmw-event-info-row {
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.04);
	border-radius: 0;
	padding: 12px;
}

.dmw-home-essentials .btn,
.dmw-event-info-modal .btn {
	border-radius: 0;
}

.dmw-event-info-label {
	font-family: var(--font-secondary);
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--gold-light);
	margin-bottom: 6px;
}

.dmw-event-info-value {
	font-family: var(--font-primary);
	font-size: 21px;
	line-height: 1.4;
}

@media (max-width: 768px) {
	.dmw-home-essentials-grid {
		grid-template-columns: 1fr;
	}
}

.dmw-dress-day-guide {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(36px, 6vw, 64px);
	max-width: min(900px, 100%);
	margin: clamp(28px, 4vw, 44px) auto 8px;
	text-align: center;
}

.dmw-dress-day-card {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0 0 clamp(28px, 4vw, 48px);
	margin: 0;
	border-bottom: 1px solid rgba(13, 43, 78, 0.12);
	text-align: center;
}

.dmw-dress-day-card:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.dmw-dress-day-tag {
	display: inline-block;
	margin-bottom: clamp(14px, 2vw, 20px);
	padding: 9px 16px;
	background: var(--blue-ghost);
	border: 1px solid rgba(50, 123, 191, 0.24);
	font-family: var(--font-secondary);
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--blue-deep);
}

.dmw-dress-day-card p {
	margin: 0 0 clamp(12px, 2vw, 16px);
	font-family: var(--font-secondary);
	font-size: clamp(16px, 2.1vw, 17px);
	line-height: 1.7;
	color: var(--warm-gray);
}

.dmw-dress-day-palette {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 0 auto clamp(18px, 3vw, 26px);
	max-width: 100%;
}

.dmw-dress-day-palette-label {
	font-family: var(--font-secondary);
	font-size: 12px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--gold-dark);
}

.dmw-dress-dot-group {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: clamp(16px, 4vw, 32px);
	flex-wrap: wrap;
}

.dmw-dress-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	min-width: 90px;
	max-width: 140px;
	flex: 0 0 auto;
}

.dmw-dress-dot {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.95);
	box-shadow:
		0 6px 24px rgba(13, 43, 78, 0.14),
		0 0 0 1px rgba(13, 43, 78, 0.14);
	display: block;
	flex-shrink: 0;
}

.dmw-dress-dot-caption {
	font-family: var(--font-secondary);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--blue-deep);
	text-align: center;
	width: 100%;
	max-width: 120px;
}

.dmw-dress-dot-code {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.04em;
	opacity: 0.8;
}

.dmw-dress-dot-blue { background: linear-gradient(135deg, #7eb4e4, #5a9ad5); }
.dmw-dress-dot-pink { background: linear-gradient(135deg, #f7bcb3, #f2a89e); }
.dmw-dress-dot-jewel { background: linear-gradient(135deg, #d09ad0, #c77dc7); }
.dmw-dress-dot-fuchsia { background: linear-gradient(135deg, #f0a1b6, #e88aa0); }
.dmw-dress-dot-white { background: linear-gradient(135deg, #ffffff, #f2f2f2); }
.dmw-dress-dot-yellow { background: linear-gradient(135deg, #f7dd98, #f2cb6c); }
.dmw-dress-dot-green { background: linear-gradient(135deg, #9ad0b4, #7dc4a0); }
.dmw-dress-dot-turquoise { background: linear-gradient(135deg, #8edfd4, #6fd4c4); }
.dmw-dress-dot-orange { background: linear-gradient(135deg, #efb08d, #e88a60); }

.timeline-day-head {
	text-align: center;
	margin: 0 auto var(--space-xl);
}

.timeline-day-tag {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid rgba(185, 157, 111, 0.35);
	background: rgba(50, 123, 191, 0.08);
	font-family: var(--font-secondary);
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--blue-deep);
	margin-bottom: 8px;
}

.timeline-day-location {
	font-family: var(--font-primary);
	font-size: clamp(18px, 2.2vw, 28px);
	color: var(--blue-deep);
	line-height: 1.2;
}

.timeline-day-subtitle {
	margin-top: 8px;
	font-family: var(--font-secondary);
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--gold-dark);
}

/* Arrive: airport card custom image (matches SVG footprint ~36×36) */
.arrive-by-plane .airport-icon img {
	width: 36px;
	height: 36px;
	display: block;
	object-fit: cover;
	border-radius: 6px;
}
