/**
 * RT Packages Search Filter Styles
 * Matches RoyalTravel2021 theme styling
 */

.rt-packages-search-filter {
	margin: 30px 0;
	padding: 20px;
	background: #fff;
	border-radius: 4px;
}

/* On packages archive: keep form within grid, not full width */
body.post-type-archive-packages .rt-packages-search-filter {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
}

.rt-packages-search-filter .rt-search-form-title {
	font-size: 24px;
	font-weight: 500;
	margin-bottom: 20px;
	color: #353535;
	text-align: center;
}

.rt-packages-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: flex-end;
}

.rt-search-field-group {
	flex: 1;
	min-width: 200px;
}

.rt-search-field-group.rt-search-submit-group {
	flex: 0 0 auto;
	min-width: auto;
}

.rt-search-label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #353535;
}

.rt-search-input,
.rt-search-select {
	width: 100%;
	padding: 12px 15px;
	font-size: 14px;
	line-height: 1.5;
	color: #353535;
	background-color: #fff;
	border: 1px solid #d0d0d0;
	border-radius: 3px;
	transition: border-color 0.3s ease;
	box-sizing: border-box;
}

.rt-search-input:focus,
.rt-search-select:focus {
	outline: none;
	border-color: #d6ab60;
	box-shadow: 0 0 0 2px rgba(214, 171, 96, 0.1);
}

.rt-search-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23353535' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
	padding-right: 35px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
}

.rt-search-submit {
	padding: 12px 30px;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	background-color: #d6ab60;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.1s ease;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	height: 45px;
    position: relative;
    bottom: 1px;
}

.rt-search-submit:hover {
	background-color: #d6b786;
	transform: translateY(-1px);
}

.rt-search-submit:active {
	transform: translateY(0);
}

.rt-search-submit:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(214, 171, 96, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
	.rt-packages-search-form {
		flex-direction: column;
	}

	.rt-search-field-group {
		width: 100%;
		min-width: 100%;
	}

	.rt-search-field-group.rt-search-submit-group {
		width: 100%;
	}

	.rt-search-submit {
		width: 100%;
	}
}

/* Match theme button styles if available */
.rt-packages-search-filter .edgtf-btn {
	display: inline-block;
	padding: 12px 30px;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	background-color: #d6ab60;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.rt-packages-search-filter .edgtf-btn:hover {
	background-color: #d6b786;
	color: #fff;
	text-decoration: none;
}
