/**
 * Booking Search Styles
 *
 * @package Atacama_Booking
 * @since 1.0.0
 */

.atacama-booking-search-container {
	margin: 30px 0;
}

/* Search Form */
.atacama-search-form-wrapper {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	padding: 30px;
	margin-bottom: 30px;
}

.atacama-booking-search-form {
	width: 100%;
}

.atacama-search-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	align-items: end;
}

/* Buttons row - spans all columns and goes below pets field */
.atacama-search-field.atacama-search-submit {
	grid-column: 1 / -1;
	margin-top: 10px;
	align-items: center;
}

.atacama-search-field {
	display: flex;
	flex-direction: column;
}

.atacama-search-field label {
	font-size: 14px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 8px;
}

.atacama-field-hint {
	font-size: 12px;
	color: #999;
	margin-top: 4px;
	font-style: italic;
}

.atacama-search-field input,
.atacama-search-field select {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	font-size: 14px;
	color: #2c3e50;
	background: #fff;
	transition: border-color 0.3s ease;
}

.atacama-search-field input:focus,
.atacama-search-field select:focus {
	outline: none;
	border-color: #667eea;
}

.atacama-search-field input::placeholder {
	color: #999;
}

.atacama-search-submit {
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-items: center;
	justify-content: flex-start;
}

.atacama-search-submit .atacama-btn {
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.atacama-search-submit .atacama-btn-primary {
	background: #667eea;
	color: #fff;
	min-width: 150px;
}

.atacama-search-submit .atacama-btn-primary:hover {
	background: #5568d3;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.atacama-search-submit .atacama-btn-secondary {
	background: #e9ecef;
	color: #2c3e50;
}

.atacama-search-submit .atacama-btn-secondary:hover {
	background: #dee2e6;
}

/* Booking Forms Results (shown in [atacama_booking_form]) */
.atacama-booking-forms-results {
	margin: 30px 0;
}

/* Results Container */
.atacama-booking-results-container {
	margin: 30px 0;
}

/* Loading Indicator */
.atacama-search-loading {
	text-align: center;
	padding: 40px;
	font-size: 16px;
	color: #667eea;
}

.atacama-search-loading div {
	display: inline-block;
	animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

.atacama-results-header {
	margin-bottom: 30px;
}

.atacama-results-header h3 {
	font-size: 24px;
	font-weight: 600;
	color: #2c3e50;
	margin: 0 0 20px 0;
}

.atacama-booking-forms-grid {
	display: grid;
	gap: 30px;
}

.atacama-booking-form-item {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	padding: 0;
}

.atacama-search-results-header {
	margin-bottom: 30px;
}

.atacama-search-results-header h3 {
	font-size: 24px;
	font-weight: 600;
	color: #2c3e50;
	margin: 0 0 20px 0;
}

.atacama-search-results-grid {
	display: grid;
	gap: 30px;
	margin-bottom: 30px;
}

/* 1 Column Layout */
.atacama-search-results-grid.atacama-columns-1 {
	grid-template-columns: 1fr;
}

/* 2 Column Layout */
.atacama-search-results-grid.atacama-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

/* 3 Column Layout */
.atacama-search-results-grid.atacama-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

/* Result Item */
.atacama-search-result-item {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	margin-bottom: 30px;
}

.atacama-search-result-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.atacama-result-booking-form {
	padding: 0;
}

/* Ensure booking form styles are applied */
.atacama-result-booking-form .atacama-booking-form-wrap {
	margin: 0;
	box-shadow: none;
	border-radius: 0;
}

/* Responsive */
@media (max-width: 992px) {
	.atacama-search-results-grid.atacama-columns-3 {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.atacama-search-form-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.atacama-search-submit {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.atacama-search-results-grid.atacama-columns-2,
	.atacama-search-results-grid.atacama-columns-3 {
		grid-template-columns: 1fr;
	}
	
	.atacama-search-form-wrapper {
		padding: 20px;
	}
	
	.atacama-search-form-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.atacama-search-submit {
		flex-direction: column;
	}
	
	.atacama-search-submit .atacama-btn {
		width: 100%;
		justify-content: center;
	}
}

