/*
 * SunlandSG — Fix CSS (2026-08-30)
 * Floating buttons, search bar, 404 page, form errors, mobile fixes.
 */

/* ===== Floating actions ===== */
.sunland-floating-actions {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-end;
}
.sunland-floating-actions a,
.sunland-floating-actions button {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	font-family: 'Be Vietnam Pro', 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.sunland-floating-zalo {
	background: #0068ff;
}
.sunland-floating-top {
	background: rgba(0, 191, 179, 0.95);
}
.sunland-floating-actions a:hover,
.sunland-floating-actions button:hover {
	opacity: 0.9;
	transform: translateY(-2px);
	transition: all 0.15s ease;
}

/* ===== Search bar ===== */
.sunland-search-bar {
	background: #f1f9f8;
	border-bottom: 1px solid #d9ecea;
	padding: 14px 24px;
}
.sunland-search-form {
	display: flex;
	gap: 10px;
	max-width: 920px;
	margin: 0 auto;
}
.sunland-search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 11px 16px;
	border: 1px solid #c5dcd9;
	border-radius: 8px;
	font-size: 14px;
}
.sunland-search-form button {
	padding: 11px 22px;
	background: #00bfb3;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
}

/* ===== 404 page ===== */
.sunland-404-page {
	padding: 70px 24px;
	text-align: center;
}
.sunland-404-inner {
	max-width: 640px;
	margin: 0 auto;
}
.sunland-404-code {
	font-size: 96px;
	font-weight: 800;
	color: #00bfb3;
	margin: 0 0 6px;
	line-height: 1;
}
.sunland-404-title {
	font-size: 26px;
	color: #012b2e;
	margin: 0 0 12px;
}
.sunland-404-desc {
	font-size: 15px;
	color: #4d6264;
	margin: 0 0 24px;
}
.sunland-404-search {
	max-width: 460px;
	margin: 0 auto 26px;
}
.sunland-404-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}
.sunland-404-actions a {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid #00bfb3;
	border-radius: 999px;
	color: #012b2e;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}
.sunland-404-actions a:hover {
	background: #00bfb3;
	color: #fff;
}

/* ===== Form validation errors ===== */
.sunland-field-error {
	border-color: #c0392b !important;
	box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.18) !important;
}

/* ===== Mobile fixes (nhảy chữ / typography) ===== */
@media (max-width: 768px) {
	.sunland-404-code { font-size: 64px; }
	.sunland-floating-actions { right: 12px; bottom: 12px; gap: 8px; }
	.sunland-floating-actions a span,
	.sunland-floating-actions button span { display: none; }
	.sunland-floating-actions a,
	.sunland-floating-actions button { padding: 12px; }
	.sunland-search-bar { padding: 10px 14px; }
	.sunland-search-form { gap: 8px; }
	.sunland-search-form input[type="search"] { padding: 9px 12px; font-size: 13px; }
	.sunland-search-form button { padding: 9px 14px; font-size: 13px; }
}

/* ============================================================
 * #36 — Trang kết quả tìm kiếm (search.php)
 * ============================================================ */
.sl-search-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sl-search-hero { background-color: #012b2e; color: #fff; padding: 48px 0 40px; }
.sl-search-breadcrumb { font-size: 13px; opacity: .85; margin-bottom: 18px; }
.sl-search-breadcrumb a { color: #fff; text-decoration: underline; }
.sl-search-eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: 13px; font-weight: 700; color: #e2af81; margin-bottom: 8px; }
.sl-search-hero h1 { font-size: 32px; line-height: 1.25; margin: 0 0 10px; }
.sl-search-intro { font-size: 15px; opacity: .9; margin: 0 0 24px; }
.sl-search-form { display: flex; gap: 10px; max-width: 560px; }
.sl-search-form input[type="search"] {
	flex: 1; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; background: rgba(255,255,255,.12);
	color: #fff; padding: 12px 14px; font-size: 15px; min-width: 0;
}
.sl-search-form input[type="search"]::placeholder { color: rgba(255,255,255,.65); }
.sl-search-form button {
	background: #00bfb3; color: #012b2e; border: 0; border-radius: 8px; padding: 0 22px;
	font-weight: 700; font-size: 15px; cursor: pointer;
}
.sl-search-form button:hover { background: #00d2c5; }
.sl-search-results { padding: 40px 0 64px; background: #f4f6f5; }
.sl-search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.sl-search-card {
	background: #fff; border: 1px solid #d4e3e1; border-radius: 14px; overflow: hidden;
	display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.sl-search-card:hover { box-shadow: 0 8px 24px rgba(1,43,46,.10); transform: translateY(-2px); }
.sl-search-card__media img { width: 100%; height: 190px; object-fit: cover; display: block; }
.sl-search-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sl-search-card__type { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #007d7a; margin: 0; }
.sl-search-card h2 { font-size: 18px; line-height: 1.35; margin: 0; }
.sl-search-card h2 a { color: #012b2e; text-decoration: none; }
.sl-search-card h2 a:hover { color: #007d7a; }
.sl-search-card__excerpt { font-size: 14px; line-height: 1.55; color: #4d6264; margin: 0; }
.sl-search-card__code { font-size: 13px; color: #9f6723; margin: 0; }
.sl-search-card__cta { margin-top: auto; font-weight: 700; font-size: 14px; color: #007d7a; text-decoration: none; }
.sl-search-card__cta:hover { color: #012b2e; }
.sl-search-empty { text-align: center; padding: 60px 24px; }
.sl-search-empty__icon { font-size: 44px; margin: 0 0 12px; }
.sl-search-empty h2 { font-size: 22px; color: #012b2e; margin: 0 0 10px; }
.sl-search-empty p { color: #4d6264; max-width: 520px; margin: 0 auto 22px; }
.sl-search-empty__cta { display: inline-block; background: #012b2e; color: #fff; border-radius: 8px; padding: 12px 26px; font-weight: 700; text-decoration: none; }
.sl-search-empty__cta:hover { background: #004d4a; }
.sl-search-page .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.sl-search-page .nav-links a, .sl-search-page .nav-links span {
	padding: 8px 14px; border: 1px solid #d4e3e1; border-radius: 8px; background: #fff; color: #012b2e; text-decoration: none;
}
.sl-search-page .nav-links .current { background: #012b2e; color: #fff; border-color: #012b2e; }
@media (max-width: 560px) {
	.sl-search-hero h1 { font-size: 24px; }
	.sl-search-form { flex-direction: column; }
	.sl-search-grid { grid-template-columns: 1fr; }
}