.hmr-availability-search {
	--hmr-free: #37dc48;
	--hmr-partial: #ffd54a;
	--hmr-booked: #ffd6d6;
	--hmr-ink: #08213f;
	display: grid;
	gap: 22px;
}

.hmr-searchbar {
	background: #fff;
	border: 1px solid #d9e0e7;
	border-radius: 8px;
	box-shadow: 0 12px 34px rgba(8, 33, 63, .08);
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	align-items: end;
	padding: 16px;
}

.hmr-searchbar label {
	color: #526071;
	display: grid;
	gap: 6px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.hmr-searchbar input {
	border: 1px solid #cbd5df;
	border-radius: 4px;
	color: var(--hmr-ink);
	min-height: 44px;
	padding: 0 12px;
}

.hmr-searchbar button,
.hmr-card__actions .button {
	border: 0;
	border-radius: 4px;
	font-weight: 900;
	min-height: 44px;
	padding: 0 16px;
	text-transform: uppercase;
}

.hmr-searchbar__submit,
.hmr-primary {
	background: var(--hmr-primary, #08213f);
	color: #fff;
}

.hmr-searchbar__reset,
.hmr-card__actions .button:not(.hmr-primary) {
	background: #eef2f6;
	color: var(--hmr-ink);
}

.hmr-availability-search__message {
	color: #526071;
	font-weight: 800;
	min-height: 24px;
}

.hmr-availability-search__results {
	display: grid;
	grid-template-columns: repeat(var(--hmr-columns, 3), minmax(0, 1fr));
	gap: 20px;
}

.hmr-availability-search--list .hmr-availability-search__results {
	grid-template-columns: 1fr;
}

.hmr-card {
	background: #fff;
	border: 1px solid #d9e0e7;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(8, 33, 63, .08);
	display: grid;
	overflow: hidden;
	transition: transform .14s ease, box-shadow .14s ease;
}

.hmr-card:hover {
	box-shadow: 0 16px 36px rgba(8, 33, 63, .14);
	transform: translateY(-2px);
}

.hmr-card__image {
	aspect-ratio: 4 / 3;
	background: #f4f6f8;
	display: block;
	position: relative;
}

.hmr-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hmr-card__body {
	padding: 16px;
	display: grid;
	gap: 12px;
}

.hmr-card__top {
	align-items: center;
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.hmr-card h3 {
	margin: 0;
	font-size: 20px;
	line-height: 1.2;
}

.hmr-card h3 a {
	color: var(--hmr-ink);
	text-decoration: none;
}

.hmr-card p {
	color: #526071;
	margin: 0;
}

.hmr-card__price {
	color: #e71967;
	font-size: 18px;
	font-weight: 900;
	white-space: nowrap;
}

.hmr-card__period,
.hmr-card__quantity {
	background: #f7f9fb;
	border: 1px solid #edf1f5;
	border-radius: 6px;
	color: #526071;
	padding: 9px 10px;
}

.hmr-card__quantity {
	align-items: center;
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.hmr-card__quantity span {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.hmr-card__quantity strong {
	color: var(--hmr-ink);
}

.hmr-card__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.hmr-card__actions .button {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	text-align: center;
	text-decoration: none;
}

.hmr-badge {
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 900;
	background: #e5e7eb;
	color: #111827;
	text-transform: uppercase;
}

.hmr-badge--available {
	background: var(--hmr-free);
	color: #06280c;
}

.hmr-badge--partially_available {
	background: var(--hmr-partial);
	color: #3a2a00;
}

.hmr-badge--unavailable,
.hmr-badge--blocked,
.hmr-badge--not_bookable {
	background: var(--hmr-booked);
	color: #8a1020;
}

@media (max-width: 900px) {
	.hmr-searchbar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hmr-availability-search__results {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.hmr-searchbar,
	.hmr-availability-search__results,
	.hmr-card__actions {
		grid-template-columns: 1fr;
	}
}
