/**
 * Review Map – CSS mặc định
 *
 * Ghi đè style: Thêm "Lớp CSS bổ sung" trong Khối > Nâng cao (vd. my-review-style),
 * rồi trong theme hoặc CSS bổ sung viết:
 *   .my-review-style .rm-review-card { ... }
 *   .my-review-style .rm-review-card__name { ... }
 * Các class dưới đây dùng để target khi cần tùy chỉnh.
 *
 * Card: min/max-height 350px; .rm-review-card__body có overflow-y: auto.
 */

/* ========== Wrapper (block/shortcode/widget) ========== */
.rm-review-map {
	box-sizing: border-box;
	max-width: 100%;
}

.rm-review-map *,
.rm-review-map *::before,
.rm-review-map *::after {
	box-sizing: inherit;
}

/* ========== List — grid 3 cột (mỗi hàng 3 card) ========== */
.rm-review-map__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.rm-review-map__item {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* ========== Card (1 bản ghi) — <a> hoặc <div>; cao cố định 350px, content scroll trong thân ========== */
.rm-review-map__item > a.rm-review-card,
.rm-review-map__item > div.rm-review-card {
	flex: 1;
	min-height: 100%;
	margin: 0;
	padding: 26px 28px 22px;
	background: #E6EFF5;
	border-radius: 0 24px 0 24px;
	border: none;
	box-shadow: none;
	font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	/* Khung card: tối thiểu 350px; nội dung dài → cuộn trong .rm-review-card__body */
	min-height: 350px;
	max-height: 350px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.rm-review-map__item > a.rm-review-card {
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.rm-review-map__item > a.rm-review-card:hover {
	opacity: 0.96;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.rm-review-map__item > a.rm-review-card:focus {
	outline: 2px solid #ee8300;
	outline-offset: 3px;
}

/* ========== Đầu thẻ: avatar (tròn trắng + icon xanh) + tên + sao ========== */
.rm-review-card__head {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 18px;
	flex-shrink: 0;
}

.rm-review-card__avatar {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.rm-review-card__avatar-icon {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rm-review-card__meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rm-review-card__name {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #101828;
	margin: 0;
	line-height: 1.5;
}

.rm-review-card__stars {
	display: flex;
	align-items: center;
	gap: 3px;
	line-height: 1;
	margin: 0;
}

.rm-review-card__stars svg,
.rm-review-card__star {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	vertical-align: middle;
}

/* ========== Nội dung review (vùng cuộn khi dài) ========== */
.rm-review-card__body {
	font-size: 20px;
	line-height: 1.5;
	color: #000000;
	margin: 0;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	word-break: break-word;
	/* Ẩn thanh cuộn (vẫn cuộn được bằng chuột / cảm ứng / phím) */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.rm-review-card__body::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.rm-review-card__body p {
	margin: 0 0 0.75em;
}

.rm-review-card__body p:last-child {
	margin-bottom: 0;
}

/* ========== Phân trang: 前へ | 1 2 3 … | 次へ (trang active #EE8300) ========== */
.rm-review-map__pagination {
	margin-top: 24px;
	width: 100%;
}

.rm-review-map__pagination-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.rm-review-map__pagination-item {
	margin: 0;
	padding: 0;
}

.rm-review-map__pagination-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 48px;
	padding: 0 10px;
	box-sizing: border-box;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	color: #1C1C1C;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

a.rm-review-map__pagination-btn:hover {
	background: #ee8300;
	border-color: #ee8300;
	color: #fff;
	cursor: default;
	font-weight: 700;
}

.rm-review-map__pagination-btn--nav {
	min-width: auto;
	padding: 0 12px;
	gap: 4px;
}

.rm-review-map__pagination-btn--current {
	background: #ee8300;
	border-color: #ee8300;
	color: #fff;
	cursor: default;
	font-weight: 700;
}

.rm-review-map__pagination-btn--disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.rm-review-map__pagination-chevron {
	font-weight: 700;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
	.rm-review-map__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

@media (max-width: 640px) {
	.rm-review-map__item > a.rm-review-card,
	.rm-review-map__item > div.rm-review-card {
		padding: 20px 18px 18px;
		border-radius: 16px;
		min-height: 300px;
		max-height: 300px;
	}

	.rm-review-card__head {
		gap: 12px;
		margin-bottom: 14px;
	}

	.rm-review-card__avatar {
		width: 40px;
		height: 40px;
	}

	.rm-review-card__name {
		font-size: 15px;
	}

	.rm-review-card__body {
		font-size: 15px;
		line-height: 1.65;
	}

	.rm-review-map__list {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.rm-review-map__pagination-btn {
		min-width: 36px;
		min-height: 36px;
		font-size: 13px;
	}
}

/* ========== Ví dụ ghi đè bằng class nâng cao (bỏ comment khi dùng) ==========
   Trong Block chọn Khối > Nâng cao > Lớp CSS bổ sung: gõ ví dụ "review-dark"

.review-dark .rm-review-map__item > a.rm-review-card,
.review-dark .rm-review-map__item > div.rm-review-card {
	background: #2e2e2e;
	border-color: #444;
}
.review-dark .rm-review-card__name,
.review-dark .rm-review-card__body { color: #eee; }

   Hoặc class "review-compact" để card gọn hơn:

.review-compact .rm-review-map__list { gap: 12px; }
.review-compact .rm-review-map__item > a.rm-review-card,
.review-compact .rm-review-map__item > div.rm-review-card { padding: 14px 16px; }
.review-compact .rm-review-card__avatar { width: 32px; height: 32px; }
.review-compact .rm-review-card__name { font-size: 15px; }
.review-compact .rm-review-card__body { font-size: 14px; }
========== */