/* Rouf Locations Showcase — frontend grid */

.rls-grid {
	--rls-accent: #c1440e;
	--rls-columns: 3;
	display: grid;
	grid-template-columns: repeat(var(--rls-columns), 1fr);
	gap: 28px;
	margin: 32px 0;
}

@media (max-width: 900px) {
	.rls-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.rls-grid {
		grid-template-columns: 1fr;
	}
}

.rls-card {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(20, 20, 20, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rls-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(20, 20, 20, 0.14);
}

/* Horizontal, photo-left layout (matches reference design) */
.rls-card-horizontal {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 14px;
	padding: 16px;
}

.rls-card-horizontal .rls-card-media {
	position: relative;
	flex: 0 0 92px;
	width: 92px;
	height: 92px;
	border-radius: 12px;
	background: #f2ede6;
	overflow: hidden;
}

.rls-card-horizontal .rls-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rls-card-media-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f2ede6 0%, #e6ddd0 100%);
}

.rls-card-horizontal .rls-card-body {
	padding: 0;
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.rls-card-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
	color: #1a1a1a;
}

.rls-card-meta-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13px;
	color: #4a4a4a;
}

.rls-open-text {
	font-weight: 600;
	font-size: 12px;
}

.rls-open-text.is-open {
	color: #2d8a47;
}

.rls-open-text.is-closed {
	color: #962828;
}

.rls-stars {
	position: relative;
	display: inline-block;
	width: 78px;
	height: 14px;
}

.rls-stars::before {
	content: "★★★★★";
	position: absolute;
	top: -3px;
	left: 0;
	font-size: 15px;
	letter-spacing: 3px;
	color: #ddd;
}

.rls-stars::after {
	content: "★★★★★";
	position: absolute;
	top: -3px;
	left: 0;
	font-size: 15px;
	letter-spacing: 3px;
	color: #f5a623;
	width: calc(var(--rls-rating) / 5 * 100%);
	overflow: hidden;
	white-space: nowrap;
}

.rls-rating-value {
	font-weight: 700;
	color: #1a1a1a;
}

.rls-review-count {
	color: #8a8a8a;
}

.rls-price-level {
	margin-left: auto;
	font-weight: 600;
	color: var(--rls-accent);
}

.rls-card-address {
	font-size: 13px;
	color: #6a6a6a;
	line-height: 1.4;
	margin: 0;
}

.rls-card-quote {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 4px 0 0;
	font-size: 13px;
	color: #4a4a4a;
	line-height: 1.4;
}

.rls-quote-avatar {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	overflow: hidden;
	background: #dde3ea;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}

.rls-quote-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rls-quote-avatar-fallback {
	font-size: 11px;
	font-weight: 700;
	color: #5a6472;
	text-transform: uppercase;
}

.rls-quote-text {
	font-style: italic;
}

.rls-card-link {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rls-accent);
	text-decoration: none;
}

.rls-card-link:hover {
	text-decoration: underline;
}

/* ---- [rls_reviews] sliding widget ---- */

.rls-reviews-widget {
	--rls-name-color: #2a2a86;
	--rls-brand-color: #da2128;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	margin: 32px 0;
}

.rls-reviews-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.rls-reviews-header-rating {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rls-reviews-header-number {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
}

.rls-review-stars-lg::before,
.rls-review-stars-lg::after {
	font-size: 20px;
}

.rls-review-stars-lg {
	width: 100px;
	height: 18px;
}

.rls-reviews-header-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 13px;
	color: #6a6a6a;
}

.rls-google-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: #4a4a4a;
}

.rls-g-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.rls-slider-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.rls-reviews-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 4px 4px 14px;
	flex: 1;
	min-width: 0;
	scrollbar-width: thin;
}

.rls-slider-btn {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #e4e4e4;
	background: #fff;
	color: var(--rls-brand-color);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.rls-slider-btn:hover {
	background: var(--rls-brand-color);
	color: #fff;
}

.rls-rcard {
	flex: 0 0 300px;
	scroll-snap-align: start;
	background: #fff;
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(20, 20, 20, 0.08);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

@media (max-width: 640px) {
	.rls-rcard {
		flex-basis: 82%;
	}
	.rls-slider-btn {
		display: none;
	}
}

.rls-rcard-google-mark {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 20px;
	height: 20px;
}

.rls-rcard-top {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-right: 24px;
}

.rls-rcard-avatar {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
}

.rls-rcard-avatar .rls-quote-avatar-fallback {
	font-size: 15px;
}

.rls-rcard-name {
	font-weight: 600;
	font-size: 14px;
	color: var(--rls-name-color);
}

.rls-rcard-rating-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.rls-rcard-time {
	font-size: 12px;
	color: #9a9a9a;
}

.rls-rcard-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #3a3a3a;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rls-rcard-text.is-expanded {
	-webkit-line-clamp: unset;
	overflow: visible;
}

.rls-rcard-more {
	align-self: flex-start;
	background: none;
	border: none;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--rls-brand-color);
	cursor: pointer;
	font-family: inherit;
}

.rls-rcard-more:hover {
	text-decoration: underline;
}

.rls-rcard-store {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.rls-store-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var(--rls-brand-color);
}

.rls-store-icon svg {
	width: 100%;
	height: 100%;
}

.rls-store-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--rls-brand-color);
	text-decoration: none;
}

.rls-store-name:hover {
	text-decoration: underline;
}

.rls-card-error {
	padding: 16px;
	background: #fdf0ef;
	border: 1px dashed #d98c86;
	color: #8a2f27;
	font-size: 13px;
}

/* ---- Admin ---- */

.rls-admin-columns {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin-top: 16px;
}

.rls-admin-main {
	flex: 1;
	min-width: 0;
}

.rls-admin-side {
	width: 280px;
	flex-shrink: 0;
}

.rls-admin-box {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 16px 18px;
}

.rls-locations-table td {
	padding: 8px 10px;
}

.rls-location-row .button.rls-remove-row {
	color: #b32d2e;
}
