/**
 * HostOffers Reviews Listing Page
 *
 * @package HostOffers
 * @since   1.5.0
 */

/* ==========================================================================
   Outer wrapper — contains header + sidebar/cards row
   ========================================================================== */

.ho-reviews-wrapper {
	max-width: 1280px;
	margin: 0 auto;
	padding: 48px 16px 48px;
}

/* ==========================================================================
   Header — full width above sidebar+cards
   ========================================================================== */

.ho-reviews-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 48px;
}

.ho-reviews-header__left {
	max-width: 672px;
}

.ho-reviews-header__title {
	font-size: 48px;
	font-weight: 800;
	line-height: 1.1;
	color: #003366;
	margin: 0 0 16px;
	font-family: 'Montserrat', sans-serif;
}

.ho-reviews-header__subtitle {
	color: #64748b;
	font-size: 16px;
	line-height: 1.5;
	margin: 0;
}

.ho-reviews-header__controls {
	display: flex;
	gap: 16px;
	flex-shrink: 0;
}

/* Search */
.ho-reviews-search-wrap {
	position: relative;
	min-width: 200px;
}

.ho-reviews-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	pointer-events: none;
	width: 20px;
	height: 20px;
	z-index: 1;
}

.ho-reviews-search-input {
	width: 100%;
	height: 48px;
	padding: 16px 16px 16px 48px !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 16px !important;
	font-size: 16px !important;
	background: #fff !important;
	color: #1e293b;
	outline: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: border-color 0.15s ease;
	box-sizing: border-box;
}

.ho-reviews-search-input:focus {
	border-color: transparent;
	box-shadow: 0 0 0 2px #003366;
}

/* Sort */
.ho-reviews-sort-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 8px 16px;
	height: 48px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ho-reviews-sort-icon {
	color: #94a3b8;
	flex-shrink: 0;
}

.ho-reviews-sort-select {
	border: none;
	background: none;
	font-size: 14px;
	font-weight: 700;
	color: #003366;
	cursor: pointer;
	outline: none;
	appearance: auto;
}

/* ==========================================================================
   Layout: sidebar + main (below header)
   ========================================================================== */

.ho-reviews-page {
	display: flex;
	gap: 32px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.ho-reviews-sidebar {
	flex-shrink: 0;
	width: 256px;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.ho-reviews-sidebar__card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ho-reviews-sidebar__heading {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 16px;
	text-transform: uppercase;
	color: #94a3b8;
	margin: 0;
}

/* Toggle */
.ho-reviews-sidebar__toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.ho-toggle {
	position: relative;
	width: 40px;
	height: 20px;
	background: #e2e8f0;
	border: none;
	border-radius: 9999px;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease;
}

.ho-toggle--active {
	background: #00A859;
}

.ho-toggle--disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.ho-toggle__knob {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 12px;
	height: 12px;
	background: #fff;
	border-radius: 50%;
	transition: left 0.2s ease;
}

.ho-toggle--active .ho-toggle__knob {
	left: 24px;
}

.ho-reviews-sidebar__hint {
	font-size: 10px;
	color: #64748b;
	line-height: 1.625;
	font-weight: 500;
	margin: 0;
}

/* Categories */
.ho-reviews-sidebar__categories {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.ho-reviews-sidebar__categories li {
	margin-bottom: 12px;
}

.ho-reviews-sidebar__categories li:last-child {
	margin-bottom: 0;
}

.ho-reviews-sidebar__cat-btn {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	background: none;
	border: none;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	color: #475569;
	cursor: pointer;
	line-height: 20px;
	transition: color 0.15s ease;
}

.ho-reviews-sidebar__cat-btn:hover {
	color: #00A859;
}

.ho-reviews-sidebar__cat-btn--active {
	color: #003366;
	font-weight: 700;
	background: rgba(0, 51, 102, 0.08);
}

.ho-sidebar-cat__label {
	flex: 1;
	text-align: left;
}

/* Category count badge — small green-tinted number */
.ho-sidebar-cat__count {
	font-size: 10px;
	font-weight: 600;
	color: #94a3b8;
	background: #f1f5f9;
	padding: 2px 8px;
	border-radius: 9999px;
	flex-shrink: 0;
}

/* Quiz CTA card */
.ho-reviews-sidebar__cta {
	background: #003366;
	color: #fff;
	border-radius: 16px;
	padding: 24px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.ho-reviews-sidebar__cta-inner {
	position: relative;
	z-index: 1;
}

.ho-reviews-sidebar__cta h4 {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	margin: 0 0 8px;
}

.ho-reviews-sidebar__cta p {
	font-size: 14px;
	line-height: 20px;
	color: #cbd5e1;
	margin: 0 0 16px;
}

.ho-reviews-sidebar__cta-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #00A859;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	padding: 12px;
	border-radius: 12px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.ho-reviews-sidebar__cta-btn:hover {
	background: #008c4a;
	color: #fff;
}

.ho-reviews-sidebar__cta-icon {
	position: absolute;
	bottom: -16px;
	right: -16px;
	color: rgba(255, 255, 255, 0.05);
	transform: rotate(12deg);
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.ho-reviews-main {
	flex: 1;
	min-width: 0;
}

/* ==========================================================================
   Review Card Grid — 2 columns
   ========================================================================== */

.ho-reviews-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin-bottom: 48px;
}

/* ==========================================================================
   Review Card Item (compact card for reviews grid)
   ========================================================================== */

.ho-review-card-item {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.ho-review-card-item:hover {
	box-shadow: 0 25px 50px rgba(0, 168, 89, 0.2);
	border-color: #00A859;
	transform: scale(1.02);
}

/* Top section: thumbnail + name/rating */
.ho-review-card__top {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-bottom: 16px;
}

.ho-review-card__image {
	flex-shrink: 0;
}

.ho-review-card__thumb {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	object-fit: cover;
	border: 1px solid #f1f5f9;
}

.ho-review-card__info {
	flex: 1;
	min-width: 0;
}

.ho-review-card__name {
	font-size: 20px !important;
	font-weight: 800 !important;
	color: #003366 !important;
	margin: 0 0 4px !important;
	line-height: 1.3 !important;
	font-family: 'Montserrat', sans-serif !important;
}

.ho-review-card__rating {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ho-review-card__stars {
	display: flex;
	gap: 1px;
	line-height: 1;
}

.ho-review-card__stars .ho-star {
	font-size: 16px;
}

.ho-review-card__stars .ho-star-full {
	color: #f59e0b;
}

.ho-review-card__stars .ho-star-half {
	color: #FFB800;
	opacity: 0.6;
}

.ho-review-card__stars .ho-star-empty {
	color: #e2e8f0;
}

.ho-review-card__score {
	font-size: 12px;
	font-weight: 700;
	color: #94a3b8;
}

/* Tagline — below the top section */
.ho-review-card__tagline {
	font-size: 14px;
	color: #64748b;
	line-height: 1.6;
	margin: 0 0 24px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Score bars section — flat layout matching prototype */
.ho-review-card__scores {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 24px;
}

.ho-review-card__score-item {
	min-width: 0;
}

.ho-review-card__score-label {
	display: block;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	color: #94a3b8;
	margin-bottom: 4px;
}

.ho-review-card__score-item .ho-score-bar-track {
	height: 4px;
	background-color: #f1f5f9;
	border-radius: 9999px;
	overflow: hidden;
}

.ho-review-card__score-item .ho-score-bar-fill {
	height: 4px !important;
	min-height: 4px !important;
}

/* Actions row */
.ho-review-card__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #f8fafc;
}

.ho-review-card__read-link {
	font-size: 14px;
	font-weight: 700;
	color: #003366;
	text-decoration: none;
	transition: color 0.15s ease;
}

.ho-review-card__read-link:hover {
	color: #00A859;
}

.ho-review-card__read-link span {
	font-size: 16px;
	font-weight: 700;
}

.ho-review-card__visit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #00A859;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	padding: 8px 16px;
	border-radius: 8px;
	border: none;
	text-decoration: none;
	transition: transform 0.15s ease;
}

.ho-review-card__visit-btn:hover {
	transform: scale(1.05);
	color: #ffffff;
}

/* Loading */
.ho-reviews-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 48px 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.ho-reviews-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.ho-reviews-header__title {
		font-size: 32px;
	}

	.ho-reviews-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.ho-reviews-wrapper {
		padding: 24px 16px 40px;
	}

	.ho-reviews-page {
		flex-direction: column;
	}

	.ho-reviews-sidebar {
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 16px;
	}

	.ho-reviews-sidebar__card,
	.ho-reviews-sidebar__cta {
		flex: 1;
		min-width: 200px;
	}

	.ho-reviews-header__title {
		font-size: 28px;
	}

	.ho-reviews-header__controls {
		width: 100%;
		flex-direction: column;
	}

	.ho-reviews-search-wrap {
		min-width: auto;
	}

	.ho-review-card__scores {
		flex-wrap: wrap;
	}

	.ho-review-card__score-item {
		flex: 1 1 40%;
		padding: 0 12px;
		margin-bottom: 8px;
	}
}

@media (max-width: 480px) {
	.ho-review-card__scores {
		flex-direction: column;
		gap: 10px;
	}

	.ho-review-card__score-item {
		padding: 0;
		border-left: none;
		border-bottom: 1px solid #e2e8f0;
		padding-bottom: 10px;
	}

	.ho-review-card__score-item:last-child {
		border-bottom: none;
		padding-bottom: 0;
	}

	.ho-review-card__actions {
		flex-direction: column;
		gap: 12px;
		align-items: stretch;
		text-align: center;
	}
}
