/* Beds24 Villa Availability - summary list styling */

.b24va-list {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin: 24px 0;
}

.b24va-row {
	display: flex;
	flex-direction: column;
	gap: 20px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 20px;
	position: relative;
}

.b24va-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px;
}

.b24va-card-photo {
	flex: 0 0 280px;
	max-width: 320px;
}

.b24va-card-photo img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.b24va-card {
	flex: 1 1 280px;
	min-width: 240px;
}

.b24va-card-title {
	margin: 12px 0 8px;
	font-size: 1.25em;
	line-height: 1.3;
}

.b24va-card-title a {
	text-decoration: none;
}

.b24va-card-excerpt p {
	margin: 0 0 10px;
	font-size: 0.95em;
	line-height: 1.5;
	color: #444;
}

.b24va-amenities {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
}

.b24va-amenities li {
	font-size: 20px;
	color: #555;
}

.b24va-calendar-wrap {
	width: 100%;
}

.b24va-calendar-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.b24va-legend {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0;
	padding: 0;
	font-size: 0.85em;
	color: #333;
}

.b24va-legend .b24va-swatch {
	position: relative;
	padding-left: 22px;
}

.b24va-legend .b24va-swatch::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 15px;
	height: 15px;
	border: 1px solid #ccc;
	box-sizing: border-box;
	background: #fff;
}

.b24va-legend .b24va-status-available::before { background: #fff; }
.b24va-legend .b24va-status-notavailable::before { background: #c0392b; border-color: #c0392b; }
.b24va-legend .b24va-status-checkin::before,
.b24va-legend .b24va-status-checkout::before { background: #fff; }
.b24va-legend .b24va-status-checkin::after,
.b24va-legend .b24va-status-checkout::after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
}
.b24va-legend .b24va-status-checkin::after {
	border-style: solid;
	border-width: 15px 15px 0 0;
	border-color: #c0392b transparent transparent transparent;
}
.b24va-legend .b24va-status-checkout::after {
	border-style: solid;
	border-width: 0 0 15px 15px;
	border-color: transparent transparent #c0392b transparent;
}

.b24va-nav button {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 3px;
	width: 32px;
	height: 32px;
	line-height: 1;
	font-size: 18px;
	cursor: pointer;
	color: #2c3e50;
}

.b24va-nav button:hover {
	background: #f2f2f2;
}

.b24va-calendar-body {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	position: relative;
	min-height: 60px;
}

.b24va-calendar-body.b24va-loading {
	opacity: 0.5;
}

.b24va-month {
	border-collapse: collapse;
	flex: 1 1 200px;
	min-width: 190px;
}

.b24va-month caption {
	font-weight: 600;
	color: #2c3e50;
	padding-bottom: 8px;
	text-align: left;
	caption-side: top;
}

.b24va-month th {
	font-size: 0.75em;
	font-weight: 600;
	color: #666;
	padding: 4px 2px;
	text-align: center;
}

.b24va-month td {
	text-align: center;
	font-size: 0.85em;
	padding: 6px 2px;
	position: relative;
	border: 1px solid #f0f0f0;
}

.b24va-month td.b24va-pad {
	border: none;
}

.b24va-month td.b24va-status-available {
	background: #fff;
	color: #333;
}

.b24va-month td.b24va-status-notavailable {
	background: #c0392b;
	color: #fff;
}

.b24va-month td.b24va-status-unknown {
	background: #f7f7f7;
	color: #aaa;
}

.b24va-month td.b24va-status-checkin,
.b24va-month td.b24va-status-checkout {
	background: #fff;
	color: #333;
}

.b24va-month td.b24va-status-checkin::before,
.b24va-month td.b24va-status-checkout::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.b24va-month td.b24va-status-checkin::before {
	border-style: solid;
	border-width: 16px 16px 0 0;
	border-color: #c0392b transparent transparent transparent;
}

.b24va-month td.b24va-status-checkout::before {
	border-style: solid;
	border-width: 0 0 16px 16px;
	border-color: transparent transparent #c0392b transparent;
}

.b24va-month td span {
	position: relative;
	z-index: 1;
}

.b24va-details-button {
	display: block;
	width: 100%;
	text-align: center;
	background: #2c3e50;
	color: #fff;
	text-decoration: none;
	padding: 14px 0;
	border-radius: 3px;
	font-weight: 600;
	margin-top: 4px;
}

.b24va-details-button:hover,
.b24va-details-button:focus {
	background: #1f2d3a;
	color: #fff;
}

.b24va-notice {
	color: #a00;
	font-style: italic;
}

@media (max-width: 640px) {
	.b24va-top {
		flex-direction: column;
	}
	.b24va-card-photo {
		flex: 1 1 auto;
		max-width: none;
	}
	.b24va-card {
		flex: 0 0 auto; /* stacked: 280px basis would otherwise become a min height */
		min-width: 0;
	}
	.b24va-calendar-body {
		flex-direction: column;
	}
}
