/* ── Experience listing ─────────────────────────────────────────────── */
/* Container base */
.anyroad-experiences {
	margin: 2rem 0;
}

/* Shared card styles (all layouts) */
.anyroad-experiences__card {
	display: flex;
	border: 1px solid #e6e1d8;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s ease;
}

.anyroad-experiences__card:hover {
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.anyroad-experiences__img {
	object-fit: cover;
	display: block;
}

.anyroad-experiences__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.5rem;
}

/* ── Layout: GRID (cards, several per row) ──────────────────────────── */
.anyroad-experiences--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}
.anyroad-experiences--grid .anyroad-experiences__card {
	flex-direction: column;
}
.anyroad-experiences--grid .anyroad-experiences__img {
	width: 100%;
	height: 190px;
}

/* ── Layout: ROWS (one per line, image left, text right) ────────────── */
.anyroad-experiences--rows {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.anyroad-experiences--rows .anyroad-experiences__card {
	flex-direction: row;
}
.anyroad-experiences--rows .anyroad-experiences__img {
	width: 300px;
	flex: 0 0 300px;
	min-height: 220px;
}

/* ── Layout: LIST (compact, one per line, small thumbnail) ──────────── */
.anyroad-experiences--list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.anyroad-experiences--list .anyroad-experiences__card {
	flex-direction: row;
	align-items: stretch;
}
.anyroad-experiences--list .anyroad-experiences__img {
	width: 140px;
	flex: 0 0 140px;
	min-height: 120px;
}
.anyroad-experiences--list .anyroad-experiences__body {
	padding: 1rem 1.25rem;
}
.anyroad-experiences--list .anyroad-experiences__desc {
	display: none; /* keep list compact */
}

/* Stack horizontal layouts vertically on narrow screens */
@media (max-width: 640px) {
	.anyroad-experiences--rows .anyroad-experiences__card,
	.anyroad-experiences--list .anyroad-experiences__card {
		flex-direction: column;
	}
	.anyroad-experiences--rows .anyroad-experiences__img,
	.anyroad-experiences--list .anyroad-experiences__img {
		width: 100%;
		flex: none;
		height: 200px;
		min-height: 0;
	}
}

.anyroad-experiences__badge {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 0.5rem;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: #f0e9dd;
	color: #7a1f2b;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.anyroad-experiences__title {
	margin: 0 0 0.35rem;
	font-size: 1.2rem;
	line-height: 1.3;
}

.anyroad-experiences__subtitle {
	margin: 0 0 0.75rem;
	color: #6b6358;
	font-size: 0.95rem;
}

.anyroad-experiences__desc {
	margin: 0 0 1rem;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #3d3a34;
}

.anyroad-experiences__meta {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	font-size: 0.88rem;
	color: #6b6358;
}

.anyroad-experiences__price {
	font-weight: 600;
	color: #1d1b17;
}

.anyroad-experiences__book {
	margin-top: auto;
	align-self: flex-start;
	padding: 0.7rem 1.4rem;
	border: 0;
	border-radius: 6px;
	background: #7a1f2b; /* deep wine */
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease;
}

.anyroad-experiences__book:hover {
	background: #5e161f;
}

/* ── Modal ──────────────────────────────────────────────────────────── */
.anyroad-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 99999;
}

.anyroad-modal.is-open {
	display: block;
}

.anyroad-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.anyroad-modal__dialog {
	position: relative;
	width: min(900px, 94vw);
	height: min(88vh, 900px);
	margin: 4vh auto 0;
	background: #fff;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.anyroad-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.9rem 1.25rem;
	border-bottom: 1px solid #ece7df;
}

.anyroad-modal__title {
	margin: 0;
	font-size: 1.1rem;
}

.anyroad-modal__close {
	border: 0;
	background: transparent;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	color: #6b6358;
}

.anyroad-modal__frame-wrap {
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	overflow-y: scroll; /* always show scrollbar; wrapper scrolls to reach tall widget */
	-webkit-overflow-scrolling: touch;
}

.anyroad-modal__iframe {
	width: 100%;
	height: 620px; /* initial; JS sets the real height via AnyRoad postMessage */
	border: 0;
	display: block;
}

body.anyroad-modal-open {
	overflow: hidden;
}