/* ===================================
   Flytt City Search Plugin Styles
   =================================== */

/* Search Button */
.fc-search-button-wrapper {
	display: inline-block;
}

.fc-search-icon-btn {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	transform: none !important;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	transition: color 0.3s ease;
	font-size: 0;
}

.fc-search-icon-btn:hover {
	color: #61CE70;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	transform: none !important;
}

.fc-search-icon {
	width: 24px;
	height: 24px;
}

/* Search Modal */
.fc-search-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0);
	display: none;
	align-items: flex-start;
	justify-content: center;
	z-index: 9999;
	padding-top: 60px;
	transition: background 0.3s ease;
	pointer-events: none;
}

.fc-search-modal.fc-search-modal-open {
	display: flex;
	background: rgba(0, 0, 0, 0.3);
	pointer-events: auto;
}

.fc-search-container {
	width: 100%;
	max-width: 600px;
	padding: 0 20px;
}

.fc-search-form-wrapper {
	position: relative;
	background: white;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	padding: 20px 68px 20px 20px;
}
.fc-search-close{position:absolute;top:50%;right:15px;display:flex!important;align-items:center;justify-content:center;transform:translateY(-50%);width:38px!important;min-width:38px!important;height:38px;padding:0!important;border:0!important;border-radius:50%;background:#E20000!important;color:transparent!important;font-size:0!important;line-height:0!important;cursor:pointer;z-index:2;box-shadow:none!important;transition:background-color .2s ease}
.fc-search-close::before,.fc-search-close::after{content:"";position:absolute;top:50%;left:50%;width:17px;height:2px;border-radius:2px;background:#fff;transform-origin:center}
.fc-search-close::before{transform:translate(-50%,-50%) rotate(45deg)}
.fc-search-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.fc-search-close:hover{background:#61CE70!important;color:#fff!important;transform:translateY(-50%)}
.admin-bar .fc-search-modal{top:32px;height:calc(100% - 32px)}
.fc-search-loading,.fc-results-count{text-align:center;padding:15px;color:#666}

/* Search Form */
.fc-search-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.fc-search-input-group {
	display: flex;
	gap: 10px;
	align-items: center;
}

.fc-search-input,
.fc-search-input-results {
	flex: 1;
	padding: 12px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	font-size: 16px;
	font-family: inherit;
	transition: border-color 0.3s ease;
}

.fc-search-input:focus,
.fc-search-input-results:focus {
	outline: none;
	border-color: #E20000;
	box-shadow: 0 0 0 3px rgba(226, 0, 0, 0.12);
}

.fc-search-btn,
.fc-search-btn-results {
	padding: 12px 24px;
	background: #E20000;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
	white-space: nowrap;
}

.fc-search-btn:hover,
.fc-search-btn-results:hover {
	background: #61CE70;
}

/* Results Dropdown */
.fc-search-results-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid #e0e0e0;
	border-top: none;
	border-radius: 0 0 6px 6px;
	max-height: 400px;
	overflow-y: auto;
	display: none;
	z-index: 10000;
	margin-top: -2px;
}

.fc-search-results-dropdown.show {
	display: block;
}

.fc-search-result-dropdown-item {
	display: block;
	padding: 15px 16px;
	border-bottom: 1px solid #f0f0f0;
	text-decoration: none;
	color: #333;
	transition: background 0.2s ease;
}

.fc-search-result-dropdown-item:last-child {
	border-bottom: none;
}

.fc-search-result-dropdown-item:hover {
	background: #f9f9f9;
	color: #61CE70;
}

.fc-result-title {
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 15px;
}

.fc-result-excerpt {
	font-size: 14px;
	color: #666;
	line-height: 1.4;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fc-search-view-all {
	padding: 12px 16px;
	background: #f5f5f5;
	text-align: center;
	border-top: 1px solid #e0e0e0;
}

.fc-search-view-all a {
	color: #E20000;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.fc-search-view-all a:hover {
	color: #61CE70;
	text-decoration: underline;
}

.fc-search-no-match a:hover,
.fc-search-more-results a:hover {
	color: #61CE70;
}

.fc-search-no-match,
.fc-search-more-results {
	padding: 15px;
	text-align: center;
	color: #666;
	font-size: 14px;
}

.fc-search-no-match a,
.fc-search-more-results a {
	color: #E20000;
	text-decoration: none;
	font-weight: 600;
}

.fc-search-more-results-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.fc-search-more-results-link:hover {
	background: #f9f9f9;
}

.fc-search-error {
	padding: 15px;
	text-align: center;
	color: #d32f2f;
	font-size: 14px;
}

/* Search Results Page */
.fc-search-results-page {
	max-width: 800px;
	margin: 40px auto;
	padding: 0 20px;
}

.fc-search-results-header {
	margin-bottom: 40px;
	text-align: center;
}

.fc-search-results-header h1 {
	font-size: 32px;
	margin-bottom: 20px;
	color: #333;
}

.fc-search-results-header h1 strong {
	color: #E20000;
}

.fc-search-form-results {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-bottom: 20px;
}

.fc-search-input-results {
	max-width: 400px;
}

/* Results List */
.fc-search-results-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 40px;
}

.fc-search-result-item {
	padding: 20px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background: #fafafa;
	transition: box-shadow 0.3s ease, background 0.3s ease;
}

.fc-search-result-item:hover {
	background: white;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.fc-search-result-item h2,
.fc-search-result-item h3 {
	margin: 0 0 8px 0;
	font-size: 20px;
}

.fc-search-result-item h2 a,
.fc-search-result-item h3 a {
	color: #E20000;
	text-decoration: none;
}

.fc-search-result-item h2 a:hover,
.fc-search-result-item h3 a:hover {
	color: #61CE70;
	text-decoration: underline;
}

.fc-result-type {
	font-size: 12px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 10px 0;
	font-weight: 600;
}

.fc-search-result-item > p.fc-result-excerpt {
	color: #555;
	line-height: 1.6;
	margin: 10px 0;
	display: block;
	-webkit-line-clamp: unset;
}

.fc-result-link {
	display: inline-block;
	color: #E20000;
	text-decoration: none;
	font-weight: 600;
	margin-top: 10px;
	transition: color 0.3s ease;
}

.fc-result-link:hover {
	color: #61CE70;
}

/* No Results */
.fc-search-no-results {
	text-align: center;
	padding: 40px 20px;
	background: #f5f5f5;
	border-radius: 8px;
	margin-bottom: 40px;
}

.fc-search-no-results p {
	font-size: 16px;
	color: #666;
	margin: 15px 0;
}

.fc-btn-contact {
	display: inline-block;
	padding: 12px 30px;
	background: #E20000;
	color: white;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	margin-top: 15px;
	transition: background 0.3s ease;
}

.fc-btn-contact:hover {
	background: #61CE70;
}

/* Empty State */
.fc-search-empty {
	text-align: center;
	padding: 40px 20px;
	color: #999;
	font-size: 16px;
}

/* Results Info */
.fc-results-info {
	text-align: center;
	color: #999;
	font-size: 14px;
	margin-top: 30px;
	padding: 20px 0;
	border-top: 1px solid #e0e0e0;
}

.fc-search-pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:32px 0}
.fc-search-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 13px;border:1px solid #ddd;border-radius:6px;background:#fff;color:#333;text-decoration:none;font-weight:600;transition:.2s ease}
.fc-search-pagination a.page-numbers:hover{border-color:#61CE70;background:#f1fff3;color:#61CE70}
.fc-search-pagination .page-numbers.current{border-color:#E20000;background:#E20000;color:#fff}

/* Responsive */
@media (max-width: 600px) {
	.admin-bar .fc-search-modal {
		top: 46px;
		height: calc(100% - 46px);
	}

	.fc-search-modal {
		padding-top: 20px;
		align-items: flex-start;
	}

	.fc-search-form-wrapper {
		padding: 58px 14px 14px;
		border-radius: 10px;
	}

	.fc-search-close {
		top: 12px;
		right: 12px;
		transform: none;
	}

	.fc-search-close:hover {
		transform: none;
	}

	.fc-search-input-group {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.fc-search-btn,
	.fc-search-input {
		width: 100%;
		max-width: none;
		box-sizing: border-box;
	}

	.fc-search-container {
		padding: 0 10px;
	}

	.fc-search-results-dropdown {
		position: static;
		max-height: calc(100vh - 190px);
		margin-top: 10px;
		border: 1px solid #e0e0e0;
		border-radius: 6px;
	}

	.fc-search-results-page {
		margin: 16px auto;
		padding: 0 12px;
	}

	.fc-search-results-header h1 {
		font-size: 24px;
	}

	.fc-search-form-results {
		flex-direction: column;
		gap: 10px;
	}

	.fc-search-input-results {
		max-width: 100% !important;
		width: 100%;
		box-sizing: border-box;
	}

	.fc-search-btn-results {
		width: 100%;
	}

	.fc-search-result-item {
		padding: 15px;
	}

	.fc-search-result-item h2,
	.fc-search-result-item h3 {
		font-size: 18px;
	}

	.fc-search-pagination {
		gap: 6px;
		margin: 24px 0;
	}

	.fc-search-pagination .page-numbers {
		min-width: 38px;
		height: 38px;
		padding: 0 10px;
		font-size: 14px;
	}
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
	.fc-search-form-wrapper,
	.fc-search-results-dropdown {
		background: #2a2a2a;
		color: #e0e0e0;
	}

	.fc-search-input,
	.fc-search-input-results {
		background: #1e1e1e;
		border-color: #444;
		color: #e0e0e0;
	}

	.fc-search-input:focus,
	.fc-search-input-results:focus {
		border-color: #E20000;
	}

	.fc-search-result-dropdown-item:hover {
		background: #333;
	}

	.fc-search-view-all,
	.fc-search-results-dropdown {
		background: #333;
		border-color: #444;
	}

	.fc-search-no-results {
		background: #1e1e1e;
	}

	.fc-result-excerpt {
		color: #999;
	}

	.fc-search-results-header h1 {
		color: #e0e0e0;
	}

	.fc-search-result-item {
		background: #1e1e1e;
		border-color: #444;
	}
}
