/* Mobile Trigger Button (30x30px Icon) */
.faps__mobile-trigger {
	display: none;
	width: 45px;
	height: 45px;
	min-width: 45px;
	min-height: 45px;
	border: 0;
	background-color: #007dcb;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: #fff;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background 0.2s ease;
	flex-shrink: 0;
}

.faps__mobile-trigger:hover,
.faps__mobile-trigger:active {
	background: rgba(0, 0, 0, 0.05);
}

.faps__mobile-trigger-icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
	display: block;
}

/* Mobile Fullscreen Modal */
.faps__mobile-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	background: #fff;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	overflow: hidden;
	max-width: 100vw;
	box-sizing: border-box;
}

.faps__mobile-modal[aria-hidden="false"] {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Modal Header */
.faps__mobile-modal-header {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
	min-height: 60px;
}

.faps__mobile-close {
	width: 36px;
	height: 36px;
	min-width: 36px;
	min-height: 36px;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	margin-left: auto;
	cursor: pointer;
	color: #6b7280;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.2s ease;
}

.faps__mobile-close:hover,
.faps__mobile-close:active {
	background: rgba(0, 0, 0, 0.05);
	color: #111827;
}

.faps__mobile-close svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

/* Modal Content Wrapper */
.faps__mobile-modal-content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	background: #f9fafb;
	max-width: 100%;
	box-sizing: border-box;
}

/* Search Section */
.faps__mobile-modal .faps--mobile {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	padding: 24px 20px 20px;
	overflow: visible;
	max-width: 100%;
}

.faps__mobile-modal .faps__form {
	flex: 0 0 auto;
	margin-bottom: 20px;
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.faps__mobile-modal .faps__input {
	width: 100%;
	max-width: 100%;
	height: 56px;
	border-radius: 16px;
	border: 2px solid #e5e7eb;
	background: #fff;
	padding: 0 60px 0 20px;
	font-size: 16px;
	font-weight: 400;
	color: #111827;
	transition: border-color 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
}

.faps__mobile-modal .faps__input:focus {
	border-color: #3b82f6;
	outline: none;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.faps__mobile-modal .faps__input::placeholder {
	color: #9ca3af;
}

.faps__mobile-modal.faps--rtl .faps__input {
	padding: 0 20px 0 60px;
}

.faps__mobile-modal .faps__submit {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.faps__mobile-modal.faps--rtl .faps__submit {
	right: auto;
	left: 8px;
}

/* Results Container - Fixed Height for 6 items + View More */
.faps__mobile-modal .faps__results {
	position: static;
	flex: 1 1 auto;
	border: 0;
	box-shadow: none;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: none;
	background: #fff;
}

.faps__mobile-modal .faps__results[hidden] {
	display: none !important;
}

.faps__mobile-modal .faps__list {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	padding: 0;
	margin: 0;
	overflow: visible;
}

.faps__mobile-modal .faps__item {
	flex: 0 0 auto;
	padding: 14px 16px;
	gap: 14px;
	border-bottom: 1px solid #f3f4f6;
	min-height: 88px;
	max-height: 88px;
	overflow: hidden;
}

.faps__mobile-modal .faps__item:last-child {
	border-bottom: none;
}

.faps__mobile-modal .faps__img,
.faps__mobile-modal .faps__thumb--placeholder {
	width: 56px;
	height: 56px;
	min-width: 56px;
	min-height: 56px;
	border-radius: 8px;
	object-fit: cover;
}

.faps__mobile-modal .faps__thumb--placeholder {
	background: #f3f4f6;
}

.faps__mobile-modal .faps__meta {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px; /* title (2 lines) + price row inside the fixed 88px item */
}

.faps__mobile-modal .faps__title {
	font-size: 14px;
	line-height: 1.35;
	font-weight: 600;
	color: #111827;
	overflow: hidden;
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	word-break: break-word;
}

.faps__mobile-modal .faps__empty {
	padding: 40px 16px;
	text-align: center;
	font-size: 14px;
	color: #6b7280;
}

.faps__mobile-modal .faps__view-more {
	flex: 0 0 auto;
	display: block;
	padding: 16px;
	text-align: center;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	border-top: 1px solid #e5e7eb;
	background: #f9fafb;
	color: #3b82f6;
	transition: background 0.2s ease;
	min-height: 52px;
}

.faps__mobile-modal .faps__view-more:hover,
.faps__mobile-modal .faps__view-more:active {
	background: #f3f4f6;
}

/* Contact Section */
.faps__contact {
	flex: 0 0 auto;
	padding: 20px;
	background: #fff;
	border-top: 8px solid #f3f4f6;
}

.faps__contact-title {
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	text-align: center;
	margin: 0 0 20px;
	line-height: 1.5;
}

.faps__contact-phones {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 16px;
}

.faps__contact-phone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px 12px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	text-decoration: none;
	color: #111827;
	transition: all 0.2s ease;
	min-height: 100px;
}

.faps__contact-phone:hover,
.faps__contact-phone:active {
	background: #f3f4f6;
	border-color: #d1d5db;
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faps__phone-icon {
	width: 32px;
	height: 32px;
	fill: #6b7280;
	margin-bottom: 8px;
}

.faps__phone-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.faps__phone-label {
	font-size: 13px;
	font-weight: 600;
	color: #6b7280;
	margin-bottom: 4px;
}

.faps__phone-number {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
	direction: ltr;
}

.faps__whatsapp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 20px;
	background: #25d366;
	color: #fff;
	text-decoration: none;
	border-radius: 16px;
	font-size: 15px;
	font-weight: 700;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.faps__whatsapp-btn:hover,
.faps__whatsapp-btn:active {
	background: #20ba5a;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.faps__whatsapp-icon {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

/* Responsive: Show mobile trigger and hide desktop on small screens */
@media (max-width: 768px) {
	.faps__mobile-trigger {
		display: flex !important;
	}

	.faps--desktop {
		display: none !important;
	}

	/* Prevent body scroll when modal is open */
	body.faps-modal-open {
		overflow: hidden !important;
		position: fixed !important;
		width: 100% !important;
		height: 100% !important;
		touch-action: none !important;
	}
}

/* Desktop: Hide mobile components */
@media (min-width: 769px) {
	.faps__mobile-trigger {
		display: none !important;
	}

	.faps__mobile-modal {
		display: none !important;
	}

	.faps--desktop {
		display: block !important;
	}
}
