/* UA Tools Plus — extra widgets + professional motion layer */

.ua-plus {
	--p-navy: #16294a;
	--p-blue: #2e75b6;
	--p-mid: #2a4a82;
	--p-pale: #d9e1f2;
	--p-wash: #f2f5fb;
	--p-steel: #c5cee0;
	--p-ok: #1e9e6a;
	--p-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--p-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- entrance ---------- */

.ua-plus {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s var(--p-ease), transform 0.6s var(--p-ease);
}

.ua-plus.ua-visible {
	opacity: 1;
	transform: none;
}

.ua-plus .ua-field,
.ua-plus .ua-cat-tab,
.ua-plus .ua-day,
.ua-plus .ua-slot {
	opacity: 0;
	transform: translateY(10px);
	animation: uaFadeUp 0.5s var(--p-ease) forwards;
}

@keyframes uaFadeUp {
	to { opacity: 1; transform: none; }
}

.ua-plus.ua-visible .ua-field:nth-child(1) { animation-delay: 0.05s; }
.ua-plus.ua-visible .ua-field:nth-child(2) { animation-delay: 0.10s; }
.ua-plus.ua-visible .ua-field:nth-child(3) { animation-delay: 0.15s; }
.ua-plus.ua-visible .ua-field:nth-child(4) { animation-delay: 0.20s; }
.ua-plus.ua-visible .ua-field:nth-child(5) { animation-delay: 0.25s; }
.ua-plus.ua-visible .ua-field:nth-child(6) { animation-delay: 0.30s; }

/* ---------- results ---------- */

.ua-results {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid rgba(197, 206, 224, 0.7);
}

.ua-res-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 2px;
	border-bottom: 1px dashed rgba(197, 206, 224, 0.55);
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 0.45s var(--p-ease), transform 0.45s var(--p-ease);
}

.ua-res-row.ua-in {
	opacity: 1;
	transform: none;
}

.ua-res-row:last-child {
	border-bottom: none;
}

.ua-res-label {
	font-size: 0.92rem;
	color: #4a5673;
}

.ua-res-value {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--p-mid);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

.ua-res-primary {
	margin-top: 8px;
	padding: 16px 18px;
	border: 1px solid rgba(46, 117, 182, 0.3);
	border-radius: 10px;
	background: linear-gradient(120deg, var(--p-wash) 0%, rgba(217, 225, 242, 0.55) 100%);
	border-bottom: 1px solid rgba(46, 117, 182, 0.3);
}

.ua-res-primary .ua-res-label {
	font-weight: 600;
	color: var(--p-navy);
}

.ua-res-primary .ua-res-value {
	font-size: 1.5rem;
	color: var(--p-navy);
}

/* number flash when it updates */
.ua-res-value.ua-flash {
	animation: uaFlash 0.55s var(--p-ease);
}

@keyframes uaFlash {
	0% { color: var(--p-ok); transform: translateY(-2px); }
	100% { color: inherit; transform: none; }
}

/* ---------- button ripple ---------- */

.ua-plus .ua-btn {
	position: relative;
	overflow: hidden;
}

.ua-ripple {
	position: absolute;
	border-radius: 50%;
	transform: scale(0);
	background: rgba(255, 255, 255, 0.45);
	animation: uaRipple 0.6s linear;
	pointer-events: none;
}

@keyframes uaRipple {
	to { transform: scale(3.2); opacity: 0; }
}

/* ---------- converter ---------- */

.ua-cat-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.ua-cat-tab {
	appearance: none;
	border: 1px solid var(--p-steel);
	background: #fff;
	color: var(--p-mid);
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.24s var(--p-ease);
}

.ua-cat-tab:hover {
	border-color: var(--p-blue);
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(22, 41, 74, 0.1);
}

.ua-cat-tab.ua-active {
	background: var(--p-navy);
	border-color: var(--p-navy);
	color: #fff;
}

.ua-conv-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 14px;
	align-items: end;
}

.ua-conv-row select {
	margin-top: 8px;
}

.ua-conv-swap button {
	appearance: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--p-steel);
	background: #fff;
	color: var(--p-mid);
	font-size: 18px;
	cursor: pointer;
	margin-bottom: 6px;
	transition: transform 0.4s var(--p-spring), background 0.24s var(--p-ease), color 0.24s var(--p-ease);
}

.ua-conv-swap button:hover {
	background: var(--p-navy);
	color: #fff;
	transform: rotate(180deg);
}

.ua-converter input[readonly] {
	background: var(--p-wash);
	font-weight: 700;
	color: var(--p-navy);
}

/* ---------- booking ---------- */

.ua-daystrip {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 8px;
	margin-bottom: 20px;
	scrollbar-width: thin;
}

.ua-day {
	flex: 0 0 auto;
	appearance: none;
	border: 1px solid var(--p-steel);
	background: #fff;
	border-radius: 10px;
	padding: 11px 15px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--p-navy);
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.24s var(--p-ease);
}

.ua-day:hover {
	border-color: var(--p-blue);
	transform: translateY(-3px);
	box-shadow: 0 8px 18px rgba(22, 41, 74, 0.1);
}

.ua-day.ua-active {
	background: var(--p-navy);
	border-color: var(--p-navy);
	color: #fff;
	box-shadow: 0 8px 20px rgba(22, 41, 74, 0.22);
}

.ua-slots {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
	gap: 10px;
	margin-bottom: 10px;
}

.ua-slot {
	appearance: none;
	border: 1px solid var(--p-steel);
	background: #fff;
	border-radius: 8px;
	padding: 12px 10px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--p-mid);
	cursor: pointer;
	transition: all 0.24s var(--p-ease);
}

.ua-slot:hover {
	border-color: var(--p-blue);
	background: var(--p-wash);
	transform: translateY(-2px);
}

.ua-slot.ua-active {
	background: var(--p-blue);
	border-color: var(--p-blue);
	color: #fff;
	box-shadow: 0 8px 18px rgba(46, 117, 182, 0.28);
}

.ua-tz {
	margin: 0 0 20px;
	font-size: 0.8rem;
	color: #7a8699;
}

.ua-choices-inline {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.ua-mt {
	margin-top: 18px;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.ua-plus,
	.ua-plus .ua-field,
	.ua-plus .ua-cat-tab,
	.ua-plus .ua-day,
	.ua-plus .ua-slot,
	.ua-res-row {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
		transition: none !important;
	}

	.ua-ripple { display: none !important; }

	.ua-conv-swap button:hover,
	.ua-day:hover,
	.ua-slot:hover,
	.ua-cat-tab:hover { transform: none !important; }
}

@media (max-width: 720px) {
	.ua-conv-row { grid-template-columns: 1fr; }
	.ua-conv-swap { display: flex; justify-content: center; }
	.ua-conv-swap button:hover { transform: none; }
}
