/* EduTalks — public directory & school profile styles (Stage 5) */

.et-directory {
	max-width: 1100px;
	margin: 24px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a2e;
}

/* Filters */

.et-directory-filters {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	padding: 20px;
	margin-bottom: 20px;
}

.et-filter-row {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

.et-filter-search {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #d8dae5;
	border-radius: 8px;
	font-size: 15px;
}

.et-filter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

.et-filter-grid select,
.et-filter-grid input[type="text"] {
	padding: 8px 10px;
	border: 1px solid #d8dae5;
	border-radius: 8px;
	font-size: 14px;
}

.et-clear-filters {
	font-size: 13px;
	color: #4f46e5;
}

.et-results-count {
	color: #6b6b85;
	font-size: 14px;
	margin-bottom: 12px;
}

/* Result grid / cards */

.et-school-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.et-school-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	padding: 18px;
	display: flex;
	gap: 14px;
}

.et-school-card-logo img,
.et-logo-placeholder {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	object-fit: cover;
}

.et-logo-placeholder {
	background: #eef0fb;
	color: #4f46e5;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 20px;
}

.et-logo-placeholder-lg {
	width: 96px;
	height: 96px;
	font-size: 34px;
}

.et-school-card-body h3 {
	margin: 0 0 4px;
	font-size: 16px;
}

.et-school-card-body h3 a {
	color: #1a1a2e;
	text-decoration: none;
}

.et-school-meta {
	color: #6b6b85;
	font-size: 13px;
	margin: 0 0 6px;
}

.et-admission-status {
	font-size: 12px;
	color: #4f46e5;
	font-weight: 600;
	margin: 0 0 10px;
}

.et-school-card-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.et-badge {
	background: #eef0fb;
	color: #4f46e5;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 11px;
	font-weight: 600;
	vertical-align: middle;
}

.et-badge-verified {
	background: #f0fdf4;
	color: #15803d;
}

.et-btn {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 8px;
	border: none;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	background: #eef0fb;
	color: #33334d;
}

.et-btn-primary {
	background: #4f46e5;
	color: #fff;
}

.et-btn-outline {
	background: #fff;
	border: 1px solid #d8dae5;
	color: #33334d;
}

.et-btn[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

.et-btn.et-shortlisted {
	background: #fdf2f8;
	border-color: #f9a8d4;
	color: #be185d;
}

.et-rating-summary {
	font-size: 12px;
	font-weight: 600;
	color: #b45309;
	background: #fffbeb;
	border-radius: 999px;
	padding: 2px 10px;
	white-space: nowrap;
}

.et-review-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 20px;
}

.et-review {
	border-bottom: 1px solid #eef0f5;
	padding-bottom: 16px;
}

.et-review:last-child {
	border-bottom: none;
}

.et-review-stars {
	color: #f59e0b;
	font-size: 15px;
}

.et-review-meta {
	color: #6b6b85;
	font-size: 13px;
	margin: 2px 0 6px;
}

.et-review-comment {
	margin: 0;
	font-size: 14px;
}

.et-review-form-wrap {
	border-top: 1px solid #eef0f5;
	padding-top: 16px;
	margin-top: 4px;
}

.et-review-form-wrap h3 {
	font-size: 15px;
	margin: 0 0 10px;
}

.et-help {
	font-size: 13px;
	color: #6b6b85;
}

/* Compare (V2 Phase 4) */

.et-compare-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #33334d;
	padding: 8px 4px;
}

.et-compare-bar {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	background: #1a1a2e;
	color: #fff;
	border-radius: 999px;
	padding: 10px 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
	z-index: 9999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
}

.et-compare-bar .et-help {
	color: #cfcfe0;
}

.et-compare-bar .et-btn-outline {
	background: transparent;
	border-color: #4b4b66;
	color: #fff;
	padding: 6px 12px;
}

.et-compare-table-wrap {
	overflow-x: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	padding: 8px;
}

.et-compare-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 480px;
}

.et-compare-table th,
.et-compare-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #eef0f5;
	text-align: left;
	font-size: 14px;
	vertical-align: top;
}

.et-compare-table thead th {
	text-align: center;
}

.et-compare-table tbody th {
	color: #6b6b85;
	font-weight: 600;
	white-space: nowrap;
}

.et-compare-table td {
	text-align: center;
}

.et-compare-logo {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: cover;
	margin-bottom: 6px;
}

.et-compare-section-row th {
	background: #f7f7fb;
	color: #33334d;
	text-align: left;
}

.et-compare-check {
	font-size: 16px;
}

.et-pagination {
	display: flex;
	gap: 6px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.et-page-link {
	padding: 6px 12px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #d8dae5;
	color: #33334d;
	text-decoration: none;
	font-size: 13px;
}

.et-page-link.active {
	background: #4f46e5;
	border-color: #4f46e5;
	color: #fff;
}

/* Public school profile */

.et-profile-header {
	display: flex;
	gap: 20px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	padding: 24px;
	margin-bottom: 20px;
	align-items: center;
}

.et-profile-header h1 {
	margin: 0 0 6px;
	font-size: 24px;
}

.et-profile-header-actions {
	margin-top: 12px;
	display: flex;
	gap: 10px;
}

.et-profile-section {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	padding: 24px;
	margin-bottom: 16px;
}

.et-profile-section h2 {
	margin-top: 0;
	font-size: 18px;
}

.et-profile-description {
	color: #33334d;
	line-height: 1.6;
}

.et-detail-grid {
	display: grid;
	grid-template-columns: 180px 1fr;
	row-gap: 10px;
	column-gap: 16px;
	margin: 0;
}

.et-detail-grid dt {
	color: #6b6b85;
	font-size: 13px;
	font-weight: 600;
}

.et-detail-grid dd {
	margin: 0;
	font-size: 14px;
}

.et-facility-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	margin: 0;
}

.et-facility-list li {
	background: #f7f7fb;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
}

.et-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

.et-gallery-item img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	border-radius: 8px;
}

.et-enquiry-status {
	margin-top: 12px;
}

.et-notice {
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
}

.et-notice-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.et-notice-success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

@media (max-width: 700px) {
	.et-directory {
		margin: 12px;
	}

	.et-profile-header {
		flex-direction: column;
		text-align: center;
	}

	.et-detail-grid {
		grid-template-columns: 1fr;
	}

	.et-school-card {
		flex-direction: column;
	}
}
