/**
 * RSL Footer — original Kiotari Sea Lines recreation.
 */

.rsl-site-footer {
	--rsl-footer-bg: #172293;
	--rsl-footer-heading: #ffffff;
	--rsl-footer-body: #d7d9f0;
	--rsl-footer-link: #ffffff;
	background-color: var(--rsl-footer-bg);
	color: var(--rsl-footer-body);
	width: 100%;
	box-sizing: border-box;
}

.rsl-site-footer *,
.rsl-site-footer *::before,
.rsl-site-footer *::after {
	box-sizing: border-box;
}

.rsl-site-footer__inner {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.rsl-site-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	align-items: start;
	text-align: left;
}

.rsl-site-footer__heading {
	margin: 0 0 14px;
	color: var(--rsl-footer-heading);
	font-family: var(--rsl-font-heading, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.35;
	text-transform: uppercase;
}

.rsl-site-footer__text {
	margin: 0 0 18px;
	color: var(--rsl-footer-body);
	font-family: var(--rsl-font-body, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: 14px;
	line-height: 1.55;
}

.rsl-site-footer__text a,
.rsl-site-footer__ext {
	color: var(--rsl-footer-link);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rsl-site-footer__text a:hover,
.rsl-site-footer__ext:hover {
	color: #c5c9f5;
}

/* Google Reviews card */
.rsl-gcard {
	margin-top: 8px;
	padding: 14px 14px 12px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.18);
	max-width: 280px;
}

.rsl-gcard__row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.rsl-gcard__img {
	flex: 0 0 auto;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	background: #0d1458;
}

.rsl-gcard__img--placeholder {
	display: inline-block;
	background:
		radial-gradient(circle at 30% 30%, #4a6cf0 0, transparent 45%),
		linear-gradient(145deg, #0d1458, #2a3db8);
}

.rsl-gcard__meta {
	min-width: 0;
	flex: 1;
}

.rsl-gcard__name {
	display: inline-block;
	margin-bottom: 4px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}

.rsl-gcard__name:hover {
	color: #c5c9f5;
}

.rsl-gcard__rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 2px;
}

.rsl-gcard__score {
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.rsl-gcard__stars {
	--rsl-rating: 4.6;
	position: relative;
	display: inline-block;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 1px;
	color: rgba(246, 187, 6, 0.35);
}

.rsl-gcard__stars::before {
	content: "★★★★★";
	position: absolute;
	left: 0;
	top: 0;
	width: calc(var(--rsl-rating) / 5 * 100%);
	overflow: hidden;
	color: #f6bb06;
	white-space: nowrap;
}

.rsl-gcard__based,
.rsl-gcard__powered {
	color: #c8cce8;
	font-size: 12px;
	line-height: 1.4;
}

.rsl-gcard__powered {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 2px;
}

.rsl-gcard__actions {
	margin-top: 10px;
}

.rsl-gcard__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 4px;
	background: #1a73e8;
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.rsl-gcard__btn:hover {
	background: #1558b0;
	color: #fff !important;
}

.rsl-gcard__g {
	display: inline-block;
	vertical-align: -3px;
}

/* Footer language switcher styles live in assets/css/lang-switcher.css */

/* Divider + back to top */
.rsl-site-footer__divider {
	position: relative;
	margin-top: 36px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.rsl-site-footer__top {
	position: absolute;
	left: 50%;
	top: 0;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 1px solid #8fa4e8;
	border-radius: 50%;
	background: rgba(23, 34, 147, 0.65);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.rsl-site-footer__top:hover,
.rsl-site-footer__top:focus-visible {
	background: rgba(23, 34, 147, 0.9);
	border-color: #c5d0f5;
	outline: none;
	transform: translate(-50%, -50%) scale(1.04);
}

.rsl-site-footer__top:focus-visible {
	box-shadow: 0 0 0 3px rgba(143, 164, 232, 0.45);
}

/* Bottom bar */
.rsl-site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
	padding-top: 28px;
}

.rsl-site-footer__copyright {
	color: #c8cce8;
	font-size: 13px;
	line-height: 1.4;
}

.rsl-site-footer__nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rsl-site-footer__nav a {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.rsl-site-footer__nav a:hover {
	color: #c5c9f5;
	text-decoration: underline;
}

/* Theme shell compatibility — avoid double navy padding when widget is used */
.rsl-footer:has(.rsl-site-footer) {
	background: transparent;
	padding: 0;
	margin-top: auto;
	color: inherit;
}

.rsl-footer:has(.rsl-site-footer) > .elementor {
	margin: 0;
}

@media (max-width: 1024px) {
	.rsl-site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 24px;
	}
}

@media (max-width: 767px) {
	.rsl-site-footer__inner {
		padding-left: 16px;
		padding-right: 16px;
	}

	.rsl-site-footer__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.rsl-gcard {
		max-width: none;
	}

	.rsl-site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		padding-top: 32px;
	}

	.rsl-site-footer__nav ul {
		gap: 10px 16px;
	}

	.rsl-site-footer__divider {
		margin-top: 32px;
	}
}
