/**
 * Front end styles for the search shortcode.
 *
 * Deliberately plain, so a theme can restyle without fighting specificity.
 *
 * @package ApartmentsBooking
 */

.abk-search-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	margin: 0 0 24px;
	padding: 16px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fafafa;
}

.abk-field {
	display: flex;
	flex: 1 1 180px;
	flex-direction: column;
	gap: 4px;
}

.abk-field-narrow {
	flex: 0 1 110px;
}

.abk-field-submit {
	flex: 0 0 auto;
}

.abk-field label {
	font-size: 0.85em;
	font-weight: 600;
}

.abk-field input,
.abk-field select {
	padding: 8px;
	border: 1px solid #c8c8c8;
	border-radius: 4px;
	background: #fff;
}

.abk-button {
	display: inline-block;
	padding: 9px 20px;
	border: 0;
	border-radius: 4px;
	background: #1d4ed8;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.abk-button:hover,
.abk-button:focus {
	background: #1e40af;
	color: #fff;
}

.abk-message {
	padding: 12px 16px;
	border-left: 4px solid #c8c8c8;
	background: #f5f5f5;
}

.abk-message-error {
	border-left-color: #b32d2e;
}

.abk-suggestions ul {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.abk-suggestions li {
	padding: 6px 0;
	border-bottom: 1px solid #ededed;
}

.abk-suggestion-count {
	margin-left: 8px;
	color: #666;
	font-size: 0.9em;
}

.abk-results-heading {
	margin: 0 0 16px;
}

.abk-cards {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 260px, 1fr ) );
	gap: 20px;
}

.abk-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
}

.abk-card-image img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.abk-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px 16px;
}

.abk-card-title {
	margin: 0;
	font-size: 1.1em;
}

.abk-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	color: #666;
	font-size: 0.9em;
}

.abk-card-excerpt {
	margin: 0;
	font-size: 0.92em;
}

.abk-card-price {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid #ededed;
}

.abk-card-total {
	font-size: 1.3em;
}

.abk-card-nights,
.abk-card-average,
.abk-card-tax {
	color: #666;
	font-size: 0.88em;
}

.abk-card-link {
	align-self: flex-start;
	margin-top: 6px;
}
