/*
 * Aromi Iblei Review Slider — front-end styling
 * All colours/sizes are CSS custom properties on .airs-slider so the whole
 * thing can be recoloured to match the site theme without touching the
 * rest of the file — just override the variables in your child theme CSS.
 */

.airs-slider {
	--airs-accent: #c1622d;      /* terracotta */
	--airs-accent-2: #7a8b4a;    /* olive */
	--airs-bg: #fff8f0;
	--airs-card-bg: #ffffff;
	--airs-text: #2e2a26;
	--airs-muted: #7a7168;
	--airs-border: #ece2d6;
	--airs-airbnb: #ff385c;
	--airs-gyg: #ff7e33;
	--airs-cesarine: #9c3d54;
	--airs-direct: #2f8f7a;
	--airs-radius: 14px;

	max-width: 1100px;
	margin: 2.5rem auto;
	padding: 0 1rem;
	font-family: inherit;
	color: var(--airs-text);
}

.airs-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.airs-average {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
}

.airs-average-number {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
}

.airs-stars {
	color: var(--airs-accent);
	letter-spacing: 1px;
	font-size: 1.1rem;
}

.airs-source-counts,
.airs-filters {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.airs-filter-btn {
	border: none;
	font: inherit;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.15s ease;
}

.airs-filter-btn:hover {
	opacity: 0.8;
}

.airs-filter-btn.is-active {
	opacity: 1;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.18);
}

.airs-filter-btn:focus-visible {
	outline: 2px solid var(--airs-text);
	outline-offset: 2px;
}

.airs-badge-all {
	background: var(--airs-text);
}

.airs-card.is-filtered-out {
	display: none;
}

.airs-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 0.3em 0.7em;
	border-radius: 999px;
	color: #fff;
	white-space: nowrap;
}

.airs-badge-airbnb {
	background: var(--airs-airbnb);
}

.airs-badge-getyourguide {
	background: var(--airs-gyg);
}

.airs-badge-cesarine {
	background: var(--airs-cesarine);
}

.airs-badge-direct {
	background: var(--airs-direct);
}

.airs-badge-other {
	background: var(--airs-muted);
}

.airs-viewport {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 0.5rem;
}

.airs-track {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 0.25rem;
	padding: 0.25rem 0.25rem 1rem;
	flex: 1;
	scrollbar-width: thin;
	scrollbar-color: var(--airs-accent) transparent;
}

.airs-track::-webkit-scrollbar {
	height: 6px;
}

.airs-track::-webkit-scrollbar-thumb {
	background: var(--airs-border);
	border-radius: 999px;
}

.airs-card {
	scroll-snap-align: start;
	flex: 0 0 auto;
	width: min(320px, 82vw);
	background: var(--airs-card-bg);
	border: 1px solid var(--airs-border);
	border-radius: var(--airs-radius);
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.airs-card-top {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.airs-avatar {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--airs-accent-2);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.95rem;
}

.airs-who {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	flex: 1;
	min-width: 0;
}

.airs-name {
	font-weight: 600;
}

.airs-location,
.airs-date {
	font-size: 0.78rem;
	color: var(--airs-muted);
}

.airs-card-top .airs-badge {
	flex: 0 0 auto;
}

.airs-rating {
	color: var(--airs-accent);
	font-size: 0.95rem;
	letter-spacing: 1px;
}

.airs-text-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.airs-text {
	font-size: 0.94rem;
	line-height: 1.5;
	color: var(--airs-text);
}

.airs-text p {
	margin: 0 0 0.6em;
}

.airs-text p:last-child {
	margin-bottom: 0;
}

.airs-text.is-clamped {
	max-height: 6.6em;
	overflow: hidden;
	position: relative;
}

.airs-text.is-clamped::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1.6em;
	background: linear-gradient(rgba(255, 255, 255, 0), var(--airs-card-bg));
	pointer-events: none;
}

.airs-readmore,
.airs-translate-toggle {
	align-self: flex-start;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--airs-accent);
	cursor: pointer;
}

.airs-readmore:hover,
.airs-translate-toggle:hover {
	text-decoration: underline;
}

.airs-photos {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.airs-photos img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--airs-border);
	display: block;
}

.airs-card-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.78rem;
	margin-top: 0.25rem;
}

.airs-verified {
	color: var(--airs-accent-2);
	font-weight: 600;
}

.airs-source-link {
	color: var(--airs-muted);
	text-decoration: none;
	white-space: nowrap;
}

.airs-source-link:hover {
	color: var(--airs-accent);
	text-decoration: underline;
}

.airs-nav {
	flex: 0 0 auto;
	align-self: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--airs-border);
	background: #fff;
	color: var(--airs-text);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, transform 0.1s ease;
}

.airs-nav:hover {
	background: var(--airs-bg);
}

.airs-nav:active {
	transform: scale(0.95);
}

.airs-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.airs-dots {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 0.25rem;
}

.airs-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--airs-border);
	border: none;
	padding: 0;
	cursor: pointer;
}

.airs-dot.is-active {
	background: var(--airs-accent);
}

.airs-photos a {
	cursor: zoom-in;
}

@media (max-width: 640px) {
	.airs-nav {
		display: none;
	}
}

/* Lightbox overlay (shared across all sliders on the page) */

body.airs-lightbox-lock {
	overflow: hidden;
}

.airs-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba( 20, 16, 12, 0.9 );
	padding: 2.5rem 1rem;
}

.airs-lightbox.is-open {
	display: flex;
}

.airs-lightbox-img {
	max-width: min(90vw, 900px);
	max-height: 85vh;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.5 );
	object-fit: contain;
}

.airs-lightbox-close,
.airs-lightbox-prev,
.airs-lightbox-next {
	position: fixed;
	background: rgba( 255, 255, 255, 0.12 );
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.airs-lightbox-close {
	top: 1.25rem;
	right: 1.25rem;
	width: 40px;
	height: 40px;
	font-size: 1.5rem;
}

.airs-lightbox-prev,
.airs-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	font-size: 1.8rem;
}

.airs-lightbox-prev {
	left: 1rem;
}

.airs-lightbox-next {
	right: 1rem;
}

.airs-lightbox-close:hover,
.airs-lightbox-prev:hover,
.airs-lightbox-next:hover {
	background: rgba( 255, 255, 255, 0.25 );
}

@media (max-width: 640px) {
	.airs-lightbox-prev,
	.airs-lightbox-next {
		width: 40px;
		height: 40px;
		font-size: 1.4rem;
	}
}
