
.mas-wrap {
	max-width: 1100px;
	margin: 0 auto;
}

.mas-form {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 16px;
	align-items: end;
	margin-bottom: 32px;
}

.mas-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mas-field label {
	font-weight: 600;
}

.mas-field input {
	min-height: 48px;
	padding: 8px 12px;
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	background: #fff;
}

.mas-button,
.mas-room-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 18px;
	border: 0;
	border-radius: 6px;
	background: #111;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
}

.mas-heading {
	margin: 0 0 20px;
}

.mas-heading h2 {
	margin-bottom: 4px;
}

.mas-heading p {
	margin: 0;
	opacity: .7;
}

.mas-results {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.mas-room {
	overflow: hidden;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	background: #fff;
}

.mas-image {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.mas-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mas-room-content {
	padding: 18px;
}

.mas-room h3 {
	margin: 0 0 10px;
}

.mas-room h3 a {
	color: inherit;
	text-decoration: none;
}

.mas-description {
	margin-bottom: 16px;
}

.mas-notice {
	padding: 16px;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	background: #fafafa;
}

@media (max-width: 800px) {
	.mas-form,
	.mas-results {
		grid-template-columns: 1fr;
	}
}


/* Carried-over stay dates on Accommodation product pages. */
.wc-bookings-date-picker td.mas-prefilled-range a,
.ui-datepicker td.mas-prefilled-range a {
	background: rgba(0, 0, 0, 0.08);
}

.wc-bookings-date-picker td.mas-prefilled-start a,
.wc-bookings-date-picker td.mas-prefilled-end a,
.ui-datepicker td.mas-prefilled-start a,
.ui-datepicker td.mas-prefilled-end a {
	background: #111;
	color: #fff;
}


.mas-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	margin: 0 0 16px;
	padding-top: 14px;
	border-top: 1px solid #ececec;
}

.mas-price-label {
	flex-basis: 100%;
	font-size: 13px;
	opacity: .65;
}

.mas-price strong {
	font-size: 22px;
	line-height: 1.1;
}

.mas-price-meta {
	font-size: 13px;
	opacity: .65;
}


.mas-button:hover,
.mas-button:focus-visible,
.mas-room-button:hover,
.mas-room-button:focus-visible {
	background: #38B6FF;
	color: #fff;
}

#accommodation-results {
	scroll-margin-top: 100px;
}

.mas-results-placeholder {
	padding: 18px 0;
	opacity: .7;
}


/* Keep result-card buttons aligned along the bottom row. */
.mas-results {
	align-items: stretch;
}

.mas-room {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.mas-room-content {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.mas-price {
	margin-top: auto;
}

.mas-actions {
	margin-top: 0;
	padding-top: 16px;
}
