/**
 * Search Form Styles - Exact Lumi Design Match for Jet Smart Filters
 * Styles for Jet Smart Filters date-range filter with timepickers
 * Matches lumirental.com/ar/ design exactly
 */

/* ============================================
   HERO SECTION & PAGE BACKGROUND
   ============================================ */

/* Hero section with dark background - Applied to page/body containing Jet Smart Filters */
body:has(.jet-smart-filters .jet-booking-date-range-filter),
body:has(.jet-smart-filters .jet-date-range[data-query-var="checkin_checkout"]),
.page:has(.jet-smart-filters .jet-booking-date-range-filter) {
	position: relative;
	min-height: 100vh;
	background: linear-gradient(135deg, #0a1929 0%, #0d2338 25%, #0f2842 50%, #0d2338 75%, #0a1929 100%);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	padding: 80px 20px 100px;
}

/* Blurred road background overlay */
body:has(.jet-smart-filters .jet-booking-date-range-filter)::before,
body:has(.jet-smart-filters .jet-date-range[data-query-var="checkin_checkout"])::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: 
		radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
		linear-gradient(180deg, rgba(10, 25, 41, 0.8) 0%, rgba(13, 35, 56, 0.9) 100%);
	background-size: cover;
	filter: blur(0.5px);
	z-index: 0;
	pointer-events: none;
}

/* Hero headline - Large white text (if exists) */
.lumi-hero-headline,
.jet-smart-filters + h1,
.jet-smart-filters + h2 {
	font-size: 48px;
	font-weight: 700;
	color: #ffffff;
	text-align: center;
	margin: 0 auto 60px;
	max-width: 1200px;
	line-height: 1.3;
	position: relative;
	z-index: 1;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
	.lumi-hero-headline,
	.jet-smart-filters + h1,
	.jet-smart-filters + h2 {
		font-size: 32px;
		margin-bottom: 40px;
	}
}

/* ============================================
   JET SMART FILTERS CONTAINER
   ============================================ */

/* Main Jet Smart Filters wrapper - Wider */
.jet-smart-filters {
	position: relative;
	z-index: 1;
	max-width: 1400px !important;
	width: 100% !important;
	margin: 0 auto;
}

/* ============================================
   MAIN DATE RANGE FILTER CONTAINER
   ============================================ */

/* Main date range filter container - White box with green top border - Wider */
.jet-date-range,
.jet-booking-date-range-filter,
.jet-date-range[data-query-var="checkin_checkout"] {
	background: #ffffff;
	border-radius: 16px;
	border-top: 4px solid #00ff88;
	padding: 32px 40px;
	margin: 0 auto;
	max-width: 1400px !important;
	width: 100% !important;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
	position: relative;
	z-index: 1;
}

/* ============================================
   LOCATION FIELD (if exists)
   ============================================ */

/* Location field label */
.jet-smart-filters label:contains("موقع"),
.jet-smart-filters .jet-filter-label:contains("موقع"),
.lumi-location-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 12px;
}

/* Location info icon */
.lumi-location-label::after,
.jet-smart-filters label:contains("موقع")::after {
	content: 'ⓘ';
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #e5e7eb;
	color: #6b7280;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: help;
}

/* Location input field - Exact match to image - Wider */
.jet-smart-filters select,
.jet-smart-filters input[type="text"]:not(.jet-date-range__from):not(.jet-date-range__to):not(.jet-date-range__input),
.jet-search-location-field,
.jet-booking-date-range-filter ~ * select,
.jet-date-range[data-query-var="checkin_checkout"] ~ * select {
	width: 100% !important;
	min-width: 250px !important;
	padding: 16px 20px !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 10px !important;
	font-size: 16px !important;
	background: #ffffff !important;
	margin-bottom: 24px !important;
	font-weight: 500 !important;
	color: #1f2937 !important;
	box-shadow: none !important;
	transition: all 0.3s ease !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
}

.jet-smart-filters select:hover,
.jet-smart-filters input[type="text"]:not(.jet-date-range__from):not(.jet-date-range__to):not(.jet-date-range__input):hover,
.jet-search-location-field:hover {
	border-color: #d1d5db !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.jet-smart-filters select:focus,
.jet-smart-filters input[type="text"]:not(.jet-date-range__from):not(.jet-date-range__to):not(.jet-date-range__input):focus,
.jet-search-location-field:focus {
	outline: none !important;
	border-color: #00ff88 !important;
	box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1) !important;
}

/* ============================================
   DATE RANGE INPUTS - SIDE BY SIDE LAYOUT
   ============================================ */

/* Date range inputs container - Fieldset with date-time groups - Wider layout */
.jet-date-range__inputs {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 24px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	margin-bottom: 24px !important;
	width: 100% !important;
}

/* Date-time field group - Each column contains date and time - Wider */
.jet-date-time-group {
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
	width: 100% !important;
	min-width: 0 !important;
}

/* Date input fields - Exact match to image - Wider - Force override */
.jet-date-range__from,
.jet-date-range__to,
.jet-date-range__control,
.jet-booking-date-range-filter .jet-date-range__from,
.jet-booking-date-range-filter .jet-date-range__to,
.jet-date-range[data-query-var="checkin_checkout"] .jet-date-range__from,
.jet-date-range[data-query-var="checkin_checkout"] .jet-date-range__to,
input[name="checkin_checkout_from"],
input[name="checkin_checkout_to"] {
	width: 100% !important;
	min-width: 200px !important;
	padding: 16px 20px !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 10px !important;
	font-size: 16px !important;
	background: #ffffff !important;
	transition: all 0.3s ease !important;
	cursor: pointer !important;
	font-weight: 500 !important;
	color: #1f2937 !important;
	box-shadow: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	box-sizing: border-box !important;
}

.jet-date-range__from:hover,
.jet-date-range__to:hover,
.jet-date-range__control:hover {
	border-color: #d1d5db;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.jet-date-range__from:focus,
.jet-date-range__to:focus,
.jet-date-range__control:focus {
	outline: none;
	border-color: #00ff88;
	box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

/* Hidden combined input */
.jet-date-range__input {
	display: none;
}

/* Date range labels - Exact match to image */
.jet-date-range label,
.jet-date-range__inputs label {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 8px;
	display: block;
	line-height: 1.5;
}

/* ============================================
   TIMEPICKER FIELDS - BESIDE DATE FIELDS
   ============================================ */

/* Timepicker fields container - Inside each date-time group */
.jet-date-time-group .jet-abaf-timepicker {
	margin-top: 0 !important;
	width: 100%;
	position: relative;
}

/* Time label above timepicker */
.jet-abaf-timepicker-label {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 8px;
	display: block;
}

/* Timepicker input - Exact match to image - Wider */
.jet-abaf-timepicker-input,
.jet-booking-date-range-filter .jet-abaf-timepicker-input,
.jet-date-range[data-query-var="checkin_checkout"] .jet-abaf-timepicker-input {
	width: 100% !important;
	min-width: 200px !important;
	padding: 16px 20px !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 10px !important;
	font-size: 16px !important;
	background: #ffffff !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	font-weight: 500 !important;
	color: #1f2937 !important;
	box-shadow: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
}

.jet-abaf-timepicker-input:hover {
	border-color: #d1d5db;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.jet-abaf-timepicker-input:focus {
	outline: none;
	border-color: #00ff88;
	box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

/* ============================================
   SEARCH/APPLY BUTTON - LARGE GREEN
   ============================================ */

/* Apply filters button - Large green button */
.jet-date-range__submit,
.apply-filters__button,
.jet-smart-filters button[type="submit"],
.jet-smart-filters .apply-filters__button,
button:contains("ابحث") {
	width: 100%;
	padding: 20px 32px;
	margin-top: 0;
	background: #00ff88 !important;
	color: #0a1929 !important;
	border: none !important;
	border-radius: 12px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: none;
	letter-spacing: 0.5px;
	display: block;
	box-shadow: 0 4px 16px rgba(0, 255, 136, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

.jet-date-range__submit:hover,
.apply-filters__button:hover,
.jet-smart-filters button[type="submit"]:hover,
.jet-smart-filters .apply-filters__button:hover {
	background: #00e67a !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 255, 136, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.jet-date-range__submit:active,
.apply-filters__button:active,
.jet-smart-filters button[type="submit"]:active,
.jet-smart-filters .apply-filters__button:active {
	transform: translateY(0);
	box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

/* Submit text inside button */
.jet-date-range__submit-text {
	color: inherit;
}

/* ============================================
   TIMEPICKER DROPDOWN
   ============================================ */

/* Timepicker slider dropdown - Scrollable list like JetBooking */
.jet-abaf-timepicker-slider-container {
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	right: 0 !important;
	background: #ffffff !important;
	border: 2px solid #e5e7eb !important;
	border-radius: 12px !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
	z-index: 1000 !important;
	margin-top: 6px !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
}

.jet-abaf-timepicker-slider-container.open {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Selected time display at top */
.jet-abaf-timepicker-selected {
	padding: 16px 20px;
	background: #ffffff;
	border-bottom: 2px solid #e5e7eb;
	font-weight: 600;
	font-size: 16px;
	color: #1f2937;
	text-align: center;
}

/* Scroll arrows */
.jet-abaf-timepicker-scroll-arrow {
	display: block;
	width: 100%;
	padding: 8px;
	border: none;
	background: #f5f5f5;
	cursor: pointer;
	transition: background 0.2s ease;
	flex-shrink: 0;
}

.jet-abaf-timepicker-scroll-arrow:hover {
	background: #e5e7eb;
}

.jet-abaf-timepicker-scroll-arrow svg {
	display: block;
	margin: 0 auto;
	color: #6b7280;
}

/* Scrollable wrapper for time options */
.jet-abaf-timepicker-slider-wrapper {
	max-height: 200px;
	overflow-y: auto;
	overflow-x: hidden;
	flex: 1;
	padding: 0;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 #f1f5f9;
}

.jet-abaf-timepicker-slider-wrapper::-webkit-scrollbar {
	width: 6px;
}

.jet-abaf-timepicker-slider-wrapper::-webkit-scrollbar-track {
	background: #f1f5f9;
}

.jet-abaf-timepicker-slider-wrapper::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 3px;
}

.jet-abaf-timepicker-slider-wrapper::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

/* Time option items */
.jet-abaf-timepicker-option {
	padding: 12px 20px;
	cursor: pointer;
	transition: background 0.2s ease;
	border-bottom: 1px solid #f3f4f6;
	color: #6b7280;
	font-size: 15px;
}

.jet-abaf-timepicker-option:last-child {
	border-bottom: none;
}

.jet-abaf-timepicker-option:hover:not(.disabled) {
	background: #f9fafb;
	color: #374151;
}

.jet-abaf-timepicker-option.active {
	background: #ffffff;
	color: #1f2937;
	font-weight: 600;
}

.jet-abaf-timepicker-option.disabled {
	opacity: 0.4;
	cursor: not-allowed;
	color: #9ca3af;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
	body:has(.jet-smart-filters .jet-booking-date-range-filter),
	body:has(.jet-smart-filters .jet-date-range[data-query-var="checkin_checkout"]) {
		padding: 40px 16px 60px;
	}

	.jet-date-range,
	.jet-booking-date-range-filter {
		padding: 24px 20px;
		border-radius: 0 0 12px 12px;
	}

	.jet-date-range__inputs {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.jet-date-range__from,
	.jet-date-range__to,
	.jet-abaf-timepicker-input,
	.jet-smart-filters select,
	.jet-smart-filters input[type="text"] {
		padding: 14px 16px;
		font-size: 15px;
	}

	.jet-date-range__submit,
	.apply-filters__button {
		padding: 18px 24px;
		font-size: 16px;
	}

}

@media (min-width: 769px) and (max-width: 1024px) {
	.jet-date-range,
	.jet-booking-date-range-filter {
		padding: 28px 32px;
	}
}

/* ============================================
   UTILITY STYLES
   ============================================ */

/* Input placeholder styling */
.jet-date-range__from::placeholder,
.jet-date-range__to::placeholder,
.jet-abaf-timepicker-input::placeholder,
.jet-smart-filters select::placeholder,
.jet-smart-filters input[type="text"]::placeholder {
	color: #9ca3af;
	opacity: 0.7;
}

/* Disabled state */
.jet-date-range__from:disabled,
.jet-date-range__to:disabled,
.jet-abaf-timepicker-input:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background: #f9fafb;
}

/* RTL Support */
[dir="rtl"] .jet-date-range__inputs,
[dir="rtl"] .jet-abaf-timepicker-fields {
	direction: rtl;
}

[dir="rtl"] .jet-date-range__from,
[dir="rtl"] .jet-date-range__to {
	text-align: right;
}

/* Ensure form wrapper doesn't interfere */
.jet-smart-filters form {
	position: relative;
}

/* Filter item wrapper */
.jet-filter {
	position: relative;
}

/* Hide default filter labels if not needed */
.jet-filter-label:empty {
	display: none;
}

/* ============================================
   FREE DELIVERY CHECKBOX
   ============================================ */

.jet-search-free-delivery {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	padding: 16px 20px;
	background: #f9fafb;
	border-radius: 10px;
	border: 2px solid #e5e7eb;
	transition: all 0.3s ease;
	cursor: pointer;
}

.jet-search-free-delivery:hover {
	border-color: #00ff88;
	background: #f0fdf4;
}

.jet-search-free-delivery input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin: 0;
	cursor: pointer;
	accent-color: #00ff88;
	flex-shrink: 0;
}

.jet-search-free-delivery label {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: #374151;
	cursor: pointer;
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Remove icon from free delivery label */
.jet-search-free-delivery label::before {
	content: '';
	display: none;
}

/* ============================================
   ERROR DIALOG - MATCHING JETBOOKING
   ============================================ */

/* ============================================
   ERROR DIALOG - REMOVED FOR HOME PAGE SEARCH
   ============================================ */
   /* Error dialog styles removed - no error dialogs on home page search form */

/* ============================================
   FIELD VALIDATION STATES
   ============================================ */

.jet-date-range__from.error,
.jet-date-range__to.error,
.jet-abaf-timepicker-input.error {
	border-color: #dc3545 !important;
	background-color: #fef2f2 !important;
}

.jet-date-range__from.error:focus,
.jet-date-range__to.error:focus,
.jet-abaf-timepicker-input.error:focus {
	border-color: #dc3545 !important;
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}
