/* =============================================================================
   Value Days — standalone availability calendars.
   Matches the swandolphin-26 theme (Playfair Display + Montserrat, brand
   palette) without loading the global header/footer. Fonts + icons are
   referenced straight from the theme so they stay in sync.
   ========================================================================== */

@font-face {
	font-family: 'Playfair Display';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('/wp-content/themes/swandolphin-26/assets/fonts/playfair-display-var.woff2') format('woff2');
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('/wp-content/themes/swandolphin-26/assets/fonts/montserrat-var.woff2') format('woff2');
}

:root {
	--vd-blue: #0e3e59;        /* brand primary */
	--vd-blue-light: #1b71a2;
	--vd-tan: #958169;         /* brand secondary */
	--vd-tan-light: #aa9a87;
	--vd-red: #a63d33;         /* sold out */
	--vd-cream: #faf8f5;
	--vd-line: #e5e0d8;
	--vd-text: #23282d;
	--vd-muted: #7c766d;
	--font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--vd-text);
	background: var(--vd-cream);
	-webkit-font-smoothing: antialiased;
}

.vd-container {
	width: min(1240px, calc(100% - 48px));
	margin-inline: auto;
}

/* ---- Masthead ---------------------------------------------------------- */
.vd-masthead {
	background: #fff;
	border-bottom: 1px solid var(--vd-line);
	padding: clamp(36px, 6vw, 56px) 0 clamp(28px, 4vw, 40px);
	text-align: center;
}

.vd-masthead__icons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 22px;
	margin-bottom: 18px;
}
.vd-masthead__icons img { display: block; height: 40px; width: auto; }

.vd-masthead__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--vd-tan);
}

.vd-masthead__title {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 500;
	color: var(--vd-blue);
	font-size: clamp(34px, 6vw, 52px);
	line-height: 1.1;
}
.vd-masthead__title em {
	font-style: italic;
	text-transform: none;
	margin-right: 0.18em;
}
.vd-masthead__title span { text-transform: uppercase; letter-spacing: 0.02em; }

.vd-masthead__note {
	margin: 14px auto 0;
	max-width: 560px;
	font-size: 14px;
	color: var(--vd-muted);
}

/* ---- Legend chips ------------------------------------------------------- */
.vd-legend {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
}
.vd-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--vd-text);
}
.vd-legend__swatch {
	width: 14px;
	height: 14px;
	display: inline-block;
	flex-shrink: 0;
}
.vd-legend__swatch--value { background: var(--vd-blue); }
.vd-legend__swatch--soldout { background: var(--vd-red); }

.vd-masthead .vd-legend { margin-top: 20px; }

/* ---- Resort sections ---------------------------------------------------- */
.vd-resort { padding: clamp(36px, 5vw, 56px) 0 8px; }
.vd-resort + .vd-resort { border-top: 1px solid var(--vd-line); }

.vd-resort__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}
.vd-resort__icon { display: block; height: 34px; width: auto; }
.vd-resort__name {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 500;
	font-size: clamp(26px, 4vw, 34px);
	line-height: 1.15;
	color: var(--vd-blue);
}
.vd-resort__head .vd-legend { margin-left: auto; }

/* ---- Calendar grid ------------------------------------------------------ */
.vd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
	gap: 20px;
	padding-bottom: clamp(28px, 4vw, 44px);
}

.vd-cal {
	background: #fff;
	border: 1px solid var(--vd-line);
	padding: 16px 16px 14px;
}

.vd-cal table {
	width: 100%;
	/* separated cells: each day renders as its own small tile with a hairline
	   gutter, so runs of value/sold-out days don't merge into one solid block */
	border-collapse: separate;
	border-spacing: 1px;
	table-layout: fixed;
}

.vd-cal caption {
	caption-side: top;
	text-align: left;
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 19px;
	color: var(--vd-blue);
	padding-bottom: 10px;
}

.vd-cal th {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--vd-tan);
	padding: 4px 0 6px;
	text-align: center;
}

.vd-cal td {
	font-size: 13px;
	text-align: center;
	height: 34px;
	padding: 0;
	color: var(--vd-text);
}

/* every real day is its own faint tile; filler cells stay invisible */
.vd-cal td.day { background: #f6f4ef; }

/* Day states */
.vd-cal td.is-value {
	background: var(--vd-blue);
	color: #fff;
	font-weight: 600;
}
.vd-cal td.is-soldout {
	background: var(--vd-red);
	color: #fff;
	font-weight: 600;
}
.vd-cal td.is-past { opacity: 0.32; }
.vd-cal td.is-today { box-shadow: inset 0 0 0 2px var(--vd-tan); font-weight: 700; }

/* ---- Closed notice ------------------------------------------------------ */
.vd-closed {
	max-width: 640px;
	margin: clamp(40px, 8vw, 80px) auto;
	background: #fff;
	border: 1px solid var(--vd-line);
	padding: clamp(28px, 5vw, 48px);
	text-align: center;
	font-size: 15px;
	color: var(--vd-text);
}
.vd-closed h2 {
	margin: 0 0 12px;
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 26px;
	color: var(--vd-blue);
}

/* ---- Footer -------------------------------------------------------------- */
.vd-footer {
	border-top: 1px solid var(--vd-line);
	background: #fff;
	padding: 22px 0;
	text-align: center;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: var(--vd-muted);
}
