/* RMV Calendar Quote - minimal, single-column, Airbnb-style availability calendar. */

.rmv-cal {
	--rmv-accent: #1f2937;
	--rmv-accent-text: #ffffff;
	--rmv-busy-bg: #f4f4f4;
	--rmv-busy-text: #9a9a9a;
	--rmv-border: #e5e5e5;
	--rmv-text: #1f2937;
	--rmv-muted: #6b7280;
	--rmv-radius: 10px;

	box-sizing: border-box;
	max-width: 640px;
	margin: 0 auto;
	color: var(--rmv-text);
	font-size: 15px;
	line-height: 1.4;
}
.rmv-cal *,
.rmv-cal *::before,
.rmv-cal *::after {
	box-sizing: inherit;
}

.rmv-cal__notice {
	background: #fff4e5;
	border: 1px solid #f0c36d;
	border-radius: var(--rmv-radius);
	padding: 12px 16px;
	margin: 0 0 16px;
}

/* ---- header / month nav ---- */
.rmv-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}
.rmv-cal__title {
	font-weight: 600;
	font-size: 1.15em;
	text-align: center;
	flex: 1;
}

/*
 * Everything below that targets a real <button> element is double-scoped
 * (".rmv-cal .rmv-cal__x" instead of just ".rmv-cal__x") to outrank global
 * theme button resets. Elementor's site-wide kit CSS ships rules like
 * ".elementor-kit-<id> button { border-radius: 100px; background: ...; }"
 * - a class + type selector, specificity (0,1,1) - which beats a single
 * BEM class selector at (0,1,0) and silently reskins every button on the
 * page, calendar days included. Two classes, (0,2,0), reliably wins
 * regardless of stylesheet order or the theme's own kit ID.
 */
.rmv-cal .rmv-cal__nav {
	appearance: none;
	background: none;
	border: 1px solid var(--rmv-border);
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--rmv-text);
	font-size: 16px;
	line-height: 1;
	flex: none;
	transition: background-color .12s ease;
}
.rmv-cal .rmv-cal__nav:hover:not(:disabled) {
	background: var(--rmv-busy-bg);
}
.rmv-cal .rmv-cal__nav:disabled {
	visibility: hidden;
}

/* ---- weekday row ---- */
.rmv-cal__weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	margin-bottom: 4px;
}
.rmv-cal__weekday {
	text-align: center;
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--rmv-muted);
	padding: 4px 0;
}

/* ---- day grid ---- */
.rmv-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.rmv-cal .rmv-cal__day {
	position: relative;
	appearance: none;
	background: none;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 6px 2px 5px;
	min-height: 52px;
	/* Grid/flex items default to min-width:auto, which refuses to shrink
	   below the intrinsic (unwrapped) width of their content - so a long,
	   nowrap event label would blow out the 1fr column track instead of
	   truncating inside it. min-width:0 lets the ellipsis in
	   .rmv-cal__day-label actually do its job. */
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 2px;
	cursor: pointer;
	font: inherit;
	color: var(--rmv-text);
	text-align: center;
}
.rmv-cal__day-num {
	font-size: 0.95em;
	line-height: 1.2;
}
.rmv-cal__day-label {
	font-size: 0.62em;
	line-height: 1.15;
	color: var(--rmv-muted);
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 0 2px;
}

.rmv-cal .rmv-cal__day--blank {
	cursor: default;
	pointer-events: none;
}

.rmv-cal .rmv-cal__day:not(:disabled):hover {
	background: var(--rmv-busy-bg);
}

.rmv-cal .rmv-cal__day--busy {
	background: var(--rmv-busy-bg);
	color: var(--rmv-busy-text);
	cursor: not-allowed;
}
.rmv-cal__day--busy .rmv-cal__day-num {
	text-decoration: line-through;
	text-decoration-color: #c9c9c9;
}
.rmv-cal .rmv-cal__day--busy:hover {
	background: var(--rmv-busy-bg);
}

.rmv-cal .rmv-cal__day--past,
.rmv-cal .rmv-cal__day--outofrange {
	color: #d0d0d0;
	cursor: not-allowed;
}
.rmv-cal .rmv-cal__day--past:hover,
.rmv-cal .rmv-cal__day--outofrange:hover {
	background: none;
}

.rmv-cal .rmv-cal__day--in-range {
	background: #ececec;
	border-radius: 0;
}
.rmv-cal .rmv-cal__day--start,
.rmv-cal .rmv-cal__day--end {
	background: var(--rmv-accent);
	color: var(--rmv-accent-text);
	border-radius: 8px;
}
.rmv-cal .rmv-cal__day--start.rmv-cal__day--end {
	border-radius: 8px;
}
.rmv-cal__day--start .rmv-cal__day-num,
.rmv-cal__day--end .rmv-cal__day-num {
	font-weight: 600;
}
/* connect the pill visually across a multi-day range */
.rmv-cal .rmv-cal__day--in-range.rmv-cal__row-start,
.rmv-cal .rmv-cal__day--start {
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
}
.rmv-cal .rmv-cal__day--in-range.rmv-cal__row-end,
.rmv-cal .rmv-cal__day--end {
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
}

/* ---- legend ---- */
.rmv-cal__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 14px;
	font-size: 0.8em;
	color: var(--rmv-muted);
}
.rmv-cal__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.rmv-cal__legend-swatch {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	display: inline-block;
	flex: none;
}
.rmv-cal__legend-swatch--busy {
	background: var(--rmv-busy-bg);
	border: 1px solid #d8d8d8;
}
.rmv-cal__legend-swatch--selected {
	background: var(--rmv-accent);
}

/* ---- footer: selection summary + CTA ---- */
.rmv-cal__footer {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--rmv-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	min-height: 34px;
}
.rmv-cal__summary {
	font-size: 0.92em;
	color: var(--rmv-text);
}
.rmv-cal__summary-dates {
	font-weight: 600;
}
.rmv-cal__hint {
	font-size: 0.85em;
	color: var(--rmv-muted);
}
.rmv-cal .rmv-cal__clear {
	background: none;
	border: none;
	padding: 0;
	color: var(--rmv-muted);
	text-decoration: underline;
	cursor: pointer;
	font-size: 0.85em;
}

.rmv-cal .rmv-cal__cta {
	appearance: none;
	border: none;
	border-radius: 999px;
	background: var(--rmv-accent);
	color: var(--rmv-accent-text);
	font-weight: 600;
	font-size: 0.9em;
	letter-spacing: .02em;
	padding: 12px 26px;
	cursor: pointer;
	white-space: nowrap;
	display: none;
}
.rmv-cal .rmv-cal__cta--visible {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.rmv-cal .rmv-cal__cta:hover {
	opacity: .9;
}

/* ---- responsive ---- */
@media (max-width: 480px) {
	.rmv-cal {
		font-size: 14px;
	}
	.rmv-cal .rmv-cal__day {
		min-height: 46px;
		padding: 5px 1px 4px;
	}
	.rmv-cal__day-label {
		display: none; /* not enough room for event names on very small screens; tap/tooltip still available */
	}
	.rmv-cal__footer {
		flex-direction: column;
		align-items: stretch;
	}
	.rmv-cal .rmv-cal__cta {
		width: 100%;
	}
}
