.rla-popup[hidden],
.rla-floating-trigger[hidden] {
	display: none !important;
}

.rla-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 18px;
	color: #112529;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rla-popup *,
.rla-popup *::before,
.rla-popup *::after,
.rla-floating-trigger,
.rla-floating-trigger * {
	box-sizing: border-box;
}

.rla-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 14, 18, .62);
	backdrop-filter: blur(8px);
}

.rla-popup__panel {
	position: relative;
	width: min(940px, 100%);
	max-height: min(92vh, 900px);
	overflow: auto;
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 22px;
	background: #f8fbf9;
	box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.rla-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba(9, 30, 36, .9);
	color: #fff;
	cursor: pointer;
}

.rla-popup__close:focus-visible,
.rla-popup__cta:focus-visible,
.rla-floating-trigger:focus-visible,
.rla-day:focus-visible {
	outline: 3px solid #f4ce20;
	outline-offset: 3px;
}

.rla-popup__header {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	justify-content: space-between;
	padding: 28px 74px 18px 28px;
	background:
		radial-gradient(circle at 12% 18%, rgba(244, 206, 32, .2), transparent 32%),
		linear-gradient(135deg, #1a8d86 0%, #075d82 62%, #053349 100%);
	color: #fff;
}

.rla-popup__eyebrow {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .86;
}

.rla-popup__header h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(34px, 5vw, 62px);
	line-height: .95;
	letter-spacing: 0;
}

.rla-popup__header p:last-child {
	max-width: 560px;
	margin: 10px 0 0;
	font-size: 15px;
	line-height: 1.45;
	opacity: .92;
}

.rla-popup__badge {
	display: grid;
	flex: 0 0 auto;
	width: 86px;
	height: 86px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .42);
	border-radius: 18px;
	background: rgba(255, 255, 255, .13);
	font-weight: 900;
}

.rla-popup__badge i {
	font-size: 26px;
}

.rla-popup__body {
	display: grid;
	grid-template-columns: minmax(280px, .95fr) minmax(360px, 1.05fr);
	gap: 14px;
	padding: 14px;
}

.rla-feature-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	align-content: start;
}

.rla-event-card {
	position: relative;
	display: flex;
	min-height: 132px;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	border-radius: 18px;
	padding: 17px;
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.rla-event-card--fishing,
.rla-event-card--available {
	grid-column: span 2;
}

.rla-event-card::after {
	position: absolute;
	right: -26px;
	bottom: -42px;
	width: 150px;
	height: 150px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 50%;
	content: "";
}

.rla-palette-teal {
	background: linear-gradient(145deg, #58b2a8, #117787);
}

.rla-palette-blue {
	background: linear-gradient(145deg, #086e9d, #064c79);
}

.rla-palette-green {
	background: linear-gradient(145deg, #65a27d, #397b6f);
}

.rla-palette-yellow {
	background: linear-gradient(145deg, #f6df2b, #e3bd16);
	color: #15201c;
}

.rla-palette-sky {
	background: linear-gradient(145deg, #b9d3dc, #7eb0bf);
	color: #102a35;
}

.rla-event-card__top {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.rla-event-card__range {
	font-size: 32px;
	font-weight: 900;
	line-height: 1;
}

.rla-event-card__status {
	border-radius: 999px;
	padding: 5px 9px;
	background: rgba(255, 255, 255, .18);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.rla-palette-yellow .rla-event-card__status,
.rla-palette-sky .rla-event-card__status {
	background: rgba(0, 0, 0, .1);
}

.rla-event-card__label {
	position: relative;
	z-index: 1;
	margin: 14px 0 2px;
	font-size: clamp(20px, 3.2vw, 30px);
	font-weight: 900;
	line-height: 1.02;
}

.rla-event-card__detail {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: 14px;
	line-height: 1.3;
	opacity: .86;
}

.rla-event-card__icon {
	position: absolute;
	right: 18px;
	bottom: 16px;
	z-index: 1;
	font-size: 34px;
	opacity: .92;
}

.rla-month-card {
	border: 1px solid rgba(10, 64, 77, .12);
	border-radius: 18px;
	background: #fff;
	padding: 14px;
	box-shadow: 0 16px 36px rgba(10, 42, 51, .08);
}

.rla-month-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	color: #12323b;
}

.rla-month-card__head strong {
	font-size: 22px;
}

.rla-month-card__head span {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	font-size: 12px;
	color: #52666c;
}

.rla-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
}

.rla-dot--reserved {
	background: #096a91;
}

.rla-dot--available {
	background: #6cae87;
}

.rla-weekdays,
.rla-month-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
}

.rla-weekdays {
	margin-bottom: 6px;
	color: #708287;
	font-size: 12px;
	font-weight: 800;
	text-align: center;
}

.rla-day,
.rla-day-blank {
	min-width: 0;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
}

.rla-day {
	display: grid;
	place-items: center;
	border: 1px solid transparent;
	background: #eef5f4;
	color: #22363b;
	font: inherit;
	font-weight: 850;
	cursor: pointer;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.rla-day:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 16px rgba(9, 56, 69, .12);
}

.rla-day--reserved {
	background: #075d82;
	color: #fff;
}

.rla-day--available {
	background: #dff0e5;
	color: #154229;
}

.rla-day--selected {
	border-color: #f1c91d;
	box-shadow: 0 0 0 3px rgba(241, 201, 29, .38);
}

.rla-day__num {
	font-size: clamp(14px, 2.2vw, 20px);
}

.rla-day__mark {
	display: block;
	width: 5px;
	height: 5px;
	margin-top: 2px;
	border-radius: 50%;
	background: currentColor;
	opacity: .7;
}

.rla-day-detail {
	min-height: 54px;
	margin-top: 12px;
	border-radius: 10px;
	background: #edf6f6;
	padding: 12px 14px;
	color: #20383d;
	font-size: 14px;
	line-height: 1.35;
}

.rla-day-detail strong {
	display: block;
	margin-bottom: 2px;
	font-size: 16px;
}

.rla-popup__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 0 14px 14px;
	color: #64777d;
	font-size: 13px;
}

.rla-popup__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border-radius: 999px;
	background: #0a6f86;
	padding: 0 18px;
	color: #fff;
	font-weight: 800;
	text-decoration: none;
}

.rla-popup__cta:hover {
	background: #07586d;
	color: #fff;
}

.rla-floating-trigger {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 999998;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 48px;
	border: 0;
	border-radius: 999px;
	background: #082f3d;
	padding: 0 16px;
	color: #fff;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 850;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
	cursor: pointer;
}

.rla-floating-trigger i {
	color: #f2d31f;
}

html.rla-popup-lock {
	overflow: hidden;
}

@media (max-width: 820px) {
	.rla-popup {
		padding: 10px;
	}

	.rla-popup__panel {
		max-height: 94vh;
		border-radius: 18px;
	}

	.rla-popup__header {
		padding: 24px 62px 16px 18px;
	}

	.rla-popup__badge {
		display: none;
	}

	.rla-popup__body {
		grid-template-columns: 1fr;
		padding: 10px;
	}

	.rla-popup__footer {
		align-items: stretch;
		flex-direction: column;
		padding: 0 10px 10px;
	}

	.rla-popup__cta {
		width: 100%;
	}
}

@media (max-width: 520px) {
	.rla-feature-grid {
		grid-template-columns: 1fr;
	}

	.rla-event-card,
	.rla-event-card--fishing,
	.rla-event-card--available {
		grid-column: span 1;
	}

	.rla-event-card {
		min-height: 118px;
		border-radius: 14px;
	}

	.rla-month-card {
		padding: 10px;
	}

	.rla-month-card__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.rla-weekdays,
	.rla-month-grid {
		gap: 4px;
	}

	.rla-floating-trigger {
		right: 12px;
		bottom: 12px;
		max-width: calc(100vw - 24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.rla-day {
		transition: none;
	}

	.rla-day:hover {
		transform: none;
	}
}
