/**
 * Airalo Destination Search Styles (Roamless Inspired)
 */

.aws-search-wrapper {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: 20px 0;
	font-family: inherit;
	box-sizing: border-box;
}

.aws-search-wrapper * {
	box-sizing: border-box;
}

/* Main Pill Search Input Bar */
.aws-search-bar {
	display: flex;
	align-items: center;
	position: relative;
	background: #ffffff;
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 9999px;
	padding: 6px 8px 6px 22px;
	box-shadow: 0 15px 35px rgba(2, 77, 244, 0.24), 0 4px 10px rgba(2, 77, 244, 0.12);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.aws-search-bar:focus-within {
	border-color: #024DF4;

}

.aws-search-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	margin-right: 14px;
	flex-shrink: 0;
}

.aws-search-input {
	flex: 1;
	min-width: 0;
	border: none !important;
	background: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	font-size: 17px !important;
	font-weight: 500 !important;
	color: #0f172a !important;
	padding: 12px 0 !important;
	margin: 0 !important;
	line-height: 1.4 !important;
}

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

/* Action Circle Button */
.aws-search-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #024DF4; 
	color: #ffffff;
	border: none;
	cursor: pointer;
	flex-shrink: 0;
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	outline: none;
	margin-left: 8px;
}

.aws-search-btn:hover {
	background: #024DF4;
	transform: scale(1.05);
	box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.aws-search-btn:active {
	transform: scale(0.96);
}

/* Autocomplete Floating Dropdown */
.aws-search-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.16), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	z-index: 9999;
	animation: awsSearchFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	max-height: 380px;
	overflow-y: auto;
}

.aws-search-results-list {
	padding: 8px 0;
	margin: 0;
	list-style: none;
}

.aws-search-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	text-decoration: none !important;
	color: inherit;
	transition: background-color 0.12s ease;
	cursor: pointer;
	border-bottom: 1px solid #f8fafc;
}

.aws-search-item:last-child {
	border-bottom: none;
}

.aws-search-item:hover,
.aws-search-item.is-selected {
	background-color: #f5f3ff; /* Soft purple hover tint */
}

.aws-search-item-left {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

/* Country Flag / Globe Icon */
.aws-search-flag-wrap {
	width: 28px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.aws-search-flag-wrap .fi {
	font-size: 20px;
	line-height: 1;
}

.aws-search-flag-wrap svg {
	width: 100%;
	height: 100%;
	color: #7c3aed;
	background: #ede9fe;
	padding: 2px;
}

.aws-search-item-details {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.aws-search-item-name {
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.aws-search-item-type {
	font-size: 12px;
	color: #64748b;
	text-transform: capitalize;
}

.aws-search-item-price {
	font-size: 14px;
	font-weight: 600;
	color: #024DF4;
	flex-shrink: 0;
	margin-left: 12px;
}

.aws-search-empty-state {
	padding: 24px 20px;
	text-align: center;
	color: #64748b;
	font-size: 14px;
}

/* Popular Destinations Chips */
.aws-search-popular-chips {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.aws-popular-label {
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
	margin-right: 4px;
}

.aws-popular-chip {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 500;
	color: #334155;
	background: #f1f5f9;
	border: 1px solid transparent;
	border-radius: 9999px;
	padding: 4px 12px;
	cursor: pointer;
	transition: all 0.15s ease;
	outline: none;
}

.aws-popular-chip:hover {
	background: #ede9fe;
	color: #6d28d9;
	border-color: #ddd6fe;
	transform: translateY(-1px);
}

@keyframes awsSearchFadeIn {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 600px) {
	.aws-search-bar {
		padding: 4px 6px 4px 14px;
	}

	.aws-search-input {
		font-size: 15px !important;
	}

	.aws-search-btn {
		width: 40px;
		height: 40px;
	}

	.aws-search-item {
		padding: 10px 14px;
	}
}
