/**
 * Salkantay Treks Peru - Error 404 Page Styles
 *
 * Adventure/Trekking themed 404 Detour experience.
 * @package SalkantayTreksPeru
 */

.stp-404-page {
	background-color: #f8fafc;
	color: #334155;
	overflow-x: hidden;
}

/* 404 Hero Adjustments */
.stp-404-page .stp-page-hero {
	min-height: 380px;
	padding-top: 5rem;
	padding-bottom: 5rem;
}

/* 404 Search Card (Floating Overlap) */
.stp-404-search-card {
	background: #ffffff;
	border-radius: 1.25rem;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
	border: 1px solid rgba(226, 232, 240, 0.8);
	padding: 2.25rem;
	margin-top: -3.5rem;
	position: relative;
	z-index: 10;
}

.stp-404-code-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(242, 104, 34, 0.1);
	color: #e05309;
	font-weight: 700;
	font-size: 0.825rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.35rem 1rem;
	border-radius: 50rem;
	margin-bottom: 1rem;
}

.stp-404-code-pill i {
	font-size: 0.95rem;
}

.stp-404-search-title {
	font-size: 1.5rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
	margin-bottom: 0.75rem;
}

.stp-404-search-desc {
	color: #64748b;
	font-size: 1rem;
	max-width: 680px;
	margin: 0 auto 1.5rem auto;
	line-height: 1.6;
}

/* Modern Search Form */
.stp-404-search-form {
	max-width: 680px;
	margin: 0 auto;
}

.stp-404-search-input-group {
	position: relative;
	display: flex;
	align-items: center;
	background: #f1f5f9;
	border: 2px solid #e2e8f0;
	border-radius: 50rem;
	padding: 0.35rem 0.45rem 0.35rem 1.25rem;
	transition: all 0.25s ease-in-out;
}

.stp-404-search-input-group:focus-within {
	background: #ffffff;
	border-color: #418d16;
	box-shadow: 0 0 0 4px rgba(65, 141, 22, 0.18);
}

.stp-404-search-icon {
	color: #94a3b8;
	font-size: 1.1rem;
	margin-right: 0.75rem;
}

.stp-404-search-input {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	font-size: 1rem;
	color: #0f172a;
	font-weight: 500;
}

.stp-404-search-input::placeholder {
	color: #94a3b8;
	font-weight: 400;
}

.stp-404-search-btn {
	background: #418d16;
	color: #ffffff;
	border: none;
	border-radius: 50rem;
	padding: 0.75rem 1.65rem;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.stp-404-search-btn:hover {
	background: #418d16;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(65, 141, 22, 0.35);
}

/* Quick Search Tags */
.stp-404-quick-tags {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.stp-404-tag-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #64748b;
	margin-right: 0.25rem;
}

.stp-404-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #475569;
	font-size: 0.85rem;
	font-weight: 500;
	padding: 0.25rem 0.85rem;
	border-radius: 50rem;
	text-decoration: none;
	transition: all 0.2s ease;
}

.stp-404-tag:hover {
	background: rgba(65, 141, 22, 0.072);
	border-color: #418d16;
	color: #418d16;
	transform: translateY(-1px);
}

/* 404 Route Shortcut Cards */
.stp-404-routes-section {
	padding: 3.5rem 0;
}

.stp-404-section-header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.stp-404-section-kicker {
	color: #418d16;
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	display: block;
	margin-bottom: 0.35rem;
}

.stp-404-section-title {
	font-size: 1.85rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.stp-404-card {
	background: #ffffff;
	border-radius: 1rem;
	border: 1px solid #e2e8f0;
	padding: 1.75rem 1.5rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	overflow: hidden;
	text-decoration: none;
}

.stp-404-card:hover {
	transform: translateY(-6px);
	border-color: #418d16;
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.09);
	text-decoration: none;
}

.stp-404-card-icon {
	width: 52px;
	height: 52px;
	border-radius: 0.75rem;
	background: rgba(65, 141, 22, 0.12);
	color: #418d16;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	margin-bottom: 1.25rem;
	transition: all 0.3s ease;
}

.stp-404-card:hover .stp-404-card-icon {
	background: #418d16;
	color: #ffffff;
	transform: scale(1.08) rotate(3deg);
}

.stp-404-card-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 0.5rem;
	line-height: 1.35;
	transition: color 0.2s ease;
}

.stp-404-card:hover .stp-404-card-title {
	color: #418d16;
}

.stp-404-card-desc {
	font-size: 0.9rem;
	color: #64748b;
	line-height: 1.5;
	margin-bottom: 1.25rem;
	flex: 1;
}

.stp-404-card-link {
	font-size: 0.875rem;
	font-weight: 700;
	color: #418d16;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: gap 0.2s ease;
}

.stp-404-card:hover .stp-404-card-link {
	gap: 0.65rem;
}

/* 404 Support & Rescue Banner */
.stp-404-rescue-box {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	border-radius: 1.25rem;
	padding: 2.5rem;
	color: #ffffff;
	position: relative;
	overflow: hidden;
	margin-bottom: 3.5rem;
}

.stp-404-rescue-box::after {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(65, 141, 22, 0.15) 0%, rgba(65, 141, 22, 0) 70%);
	pointer-events: none;
}

.stp-404-rescue-title {
	font-size: 1.4rem;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 0.5rem;
}

.stp-404-rescue-desc {
	color: #94a3b8;
	font-size: 0.95rem;
	line-height: 1.55;
	margin-bottom: 0;
	max-width: 580px;
}

.stp-404-btn-whatsapp {
	background: #418d16;
	color: #ffffff;
	font-weight: 700;
	padding: 0.85rem 1.65rem;
	border-radius: 50rem;
	border: none;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.95rem;
	text-decoration: none;
	transition: all 0.25s ease;
	box-shadow: 0 4px 15px rgba(65, 141, 22, 0.35);
}

.stp-404-btn-whatsapp:hover {
	background: #418d16;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(65, 141, 22, 0.45);
	text-decoration: none;
}

.stp-404-btn-home {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.25);
	font-weight: 600;
	padding: 0.85rem 1.5rem;
	border-radius: 50rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
	text-decoration: none;
	transition: all 0.2s ease;
}

.stp-404-btn-home:hover {
	background: #ffffff;
	color: #0f172a;
	text-decoration: none;
}

/* Contact Badges */
.stp-404-direct-contact {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stp-404-contact-item {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: #cbd5e1;
	font-size: 0.85rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.stp-404-contact-item:hover {
	color: #418d16;
	text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
	.stp-404-search-card {
		margin-top: -2.5rem;
		padding: 1.75rem 1.25rem;
	}

	.stp-404-rescue-box {
		padding: 2rem 1.5rem;
		text-align: center;
	}

	.stp-404-rescue-desc {
		margin: 0 auto 1.5rem auto;
	}

	.stp-404-direct-contact {
		justify-content: center;
	}
}

@media (max-width: 575.98px) {
	.stp-404-search-input-group {
		flex-direction: column;
		border-radius: 1rem;
		padding: 0.75rem;
		gap: 0.75rem;
	}

	.stp-404-search-input {
		width: 100%;
		text-align: center;
	}

	.stp-404-search-btn {
		width: 100%;
		justify-content: center;
	}

	.stp-404-rescue-box .d-flex {
		flex-direction: column;
		width: 100%;
	}

	.stp-404-btn-whatsapp,
	.stp-404-btn-home {
		width: 100%;
		justify-content: center;
	}
}
