.calendar-header,
.calendar-header h1,
.subtitle {
	font: bold 10px/16px "Lato";
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(40, 40, 40, 0.56);
}

.calendar-header {
	margin-bottom: 10px;
}

.divider {
	display: none;
}

.calendar-controls {
	margin-bottom: -20px;
	padding-bottom: 50px;
	display: flex;
	flex-wrap: wrap;
	position: relative;
}

.month-navigation {
	width: 200px;
	margin-bottom: 20px;
	margin-right: 20px;
	padding: 0 29px;
	position: relative;
}

.month-navigation .nav-btn {
	width: 28px;
	height: 48px;
	display: block;
	background: #f4f4f5;
	border: none;
	border-radius: 6px 0 0 6px;
}

.desktop .month-navigation .nav-btn:hover {
	background: #ab8f69;
}

.desktop .month-navigation .nav-btn:hover:before {
	opacity: 0;
}

.desktop .month-navigation .nav-btn:hover:after {
	opacity: 1;
}

.month-navigation .nav-btn:before,
.month-navigation .nav-btn:after {
	content: "";
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -4px;
	position: absolute;
	top: 50%;
	left: 50%;
	background: url(../../img/svg/nav-arrow-black.svg) no-repeat;
	background-size: 100% 100%;
	transition: 0.3s linear;
}

.month-navigation .nav-btn:after {
	opacity: 0;
	background-image: url(../../img/svg/nav-arrow-hover.svg);
}

.month-navigation .prev-month {
	position: absolute;
	top: 0;
	left: 0;
}

.month-navigation .next-month {
	position: absolute;
	top: 0;
	right: 0;
	transform: scale(-1, 1);
}

.month-selector select {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0;
	display: block;
	text-align: center;
	font: 500 14px/48px "Montserrat";
	text-align: center;
	background: #f4f4f5;
	border: none;
	color: #18181b;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: 0.3s linear;
}

.desktop .month-selector select:hover {
	color: #ab8f69;
}

.month-selector select option {
	color: #18181b;
}

.month-header {
	margin-bottom: 20px;
	margin-right: -16px;
}

.month-header .btn {
	min-width: 185px;
	min-height: 48px;
	padding: 14px 20px;
	margin-right: 16px;
	display: inline-block;
	vertical-align: top;
}

.instructions {
	display: none !important;
}

.selection-panel {
	margin-bottom: 25px;
	padding: 20px;
	background: #fafafa;
	border-radius: 15px;
	border: 1px solid #e4e4e5;
	box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.02),
		0px 10px 15px 0px rgba(0, 0, 0, 0.05);
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.selection-info h3 {
	margin-bottom: 20px;
	font: bold 28px/36px "Lato";
	letter-spacing: normal;
}

.selection-details {
	margin-right: -20px;
	margin-bottom: -15px;
	display: flex;
	flex-wrap: wrap;
}

.selection-item {
	width: 25%;
	padding: 0 20px 15px 0;
}

.selection-item .label {
	margin-bottom: 10px;
	display: block;
	font: bold 10px/16px "Lato";
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: text;
	opacity: 0.56;
}

.selection-item span:not(.label) {
	height: 46px;
	padding: 1px 0 0 15px;
	display: flex;
	align-items: center;
	background: #f4f4f5;
	border: 1px solid #f4f4f5;
	border-radius: 4px;
	font: 500 14px/1 "Montserrat";
}

.instructions {
	text-align: center;
	color: #7f8c8d;
	font-size: 14px;
	margin: 10px 0;
	padding: 10px;
	background: #f8f9fa;
	border-radius: 8px;
}

.instructions i {
	color: #3498db;
	margin: 0 5px;
}

.month-header h2,
#current-month-display {
	width: calc(100% - 42px);
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 100%;
	left: 21px;
	z-index: 1;
	font: 600 14px/1 "Lato";
	text-align: center;
	border: 1px solid #e4e4e5;
	border-bottom: none;
	border-radius: 4px 4px 0 0;
}

.apartments-container {
	padding: 44px 20px 100px 20px;
	display: flex;
	background: #fafafa;
	border-radius: 15px;
	border: 1px solid #e4e4e5;
	box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.02),
		0px 10px 15px 0px rgba(0, 0, 0, 0.05);
}

.apartments-list {
	width: 260px;
	flex-shrink: 0;
}

.apartment-header {
	height: 24px;
	padding: 0 10px;
	display: flex;
	align-items: center;
	border: 1px solid #e4e4e5;
	border-bottom: none;
	border-right: none;
}

.apartment-header div,
.apartment-header h3 {
	font: 600 14px/1 "Lato";
	letter-spacing: normal;
}

.apartment-header i {
	display: none;
}

.apartments {
	border-bottom: 1px solid #e4e4e5;
	border-left: 1px solid #e4e4e5;
	border-bottom-left-radius: 4px;
}

.apartment-item {
	height: 24px;
	padding: 0 10px;
	display: flex;
	align-items: center;
	border-top: 1px solid #e4e4e5;
	cursor: pointer;
	transition: 0.3s linear;
	color: #282828;
}

.desktop .apartment-item:hover {
	background: #eee;
	color: #282828;
}

.apartment-item.selected {
	background: #ab8f69 !important;
	color: #fff !important;
}

.apartment-item .name {
	min-width: 0;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.apartment-item .details {
	display: none;
}

.calendar-wrapper {
	width: 100%;
	min-width: 0;
}

.weekdays-header {
	display: flex;
	border: 1px solid #e4e4e5;
	border-top: none;
	border-bottom: none;
}

.weekday,
.day-cell {
	width: 100%;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e4e4e5;
	border-left: none;
	border-bottom: none;
	font: 14px/1 "Lato";
	text-align: center;
	overflow: hidden;
}

.weekday:last-child,
.day-cell:last-child {
	border-right: none;
}

.calendar-rows {
	border-bottom: 1px solid #e4e4e5;
	border-right: 1px solid #e4e4e5;
	border-bottom-right-radius: 4px;
}

.calendar-row {
	display: flex;
	border-left: 1px solid #e4e4e5;
}

.day-cell {
	position: relative;
	cursor: pointer;
	transition: 0.3s linear;
}

.day-cell.checkin,
.day-cell.checkout {
	text-shadow: 1px 1px rgba(255, 255, 255, 0.5);
}

.day-cell.checkin:before,
.day-cell.checkout:before {
	content: "";
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background: url(../../img/webp/checkin.webp) no-repeat;
	background-size: 100% 100%;
}

.day-cell.checkout:before {
	background-image: url(../../img/webp/checkout.webp);
}

.day-cell.range-start,
.day-cell.range-end,
.day-cell.in-range,
.day-cell.temp-range-end,
.day-cell.temp-in-range {
	background: #282828 !important;
	color: #fff !important;
}

.desktop .day-cell:hover {
	color: #ab8f69;
}

.day-cell.blocked {
	background: #ab8f69 !important;
	color: #fff !important;
	cursor: not-allowed;
}

.day-cell.other-month {
	color: rgba(0, 0, 0, 0.4);
}

.day-cell.selected {
	background: #282828 !important;
	color: #fff !important;
}

.day-number {
	font-size: 12px;
	position: relative;
	z-index: 1;
}

.day-price {
	display: none;
}

.legend {
	height: 75px;
	margin-bottom: -50px;
	padding: 1px 20px 0;
	display: flex;
	align-items: center;
	position: relative;
	bottom: 75px;
	z-index: 1;
}

.legend:before {
	content: "";
	width: calc(100% - 40px);
	height: 1px;
	position: absolute;
	top: 0;
	left: 20px;
	background: #e4e4e5;
}

.legend-item {
	padding: 0 45px 0 35px;
	position: relative;
}

.legend-item:last-child {
	padding-right: 0;
}

.legend-color {
	width: 30px;
	height: 30px;
	margin-top: -15px;
	position: absolute;
	top: 50%;
	left: 0;
	background: #ab8f69;
	border: 1px solid #ccc;
	overflow: hidden;
	border-radius: 4px;
}

.legend-color+span {
	min-height: 30px;
	display: flex;
	align-items: center;
	font: 600 16px/20px "Lato";
}

.legend-color.checkin {
	background: #fafafa;
}

.legend-color.checkin:before,
.legend-color.checkout:before {
	content: "";
	width: 40px;
	height: 40px;
	position: absolute;
	top: -20px;
	left: -20px;
	transform: rotate(45deg);
	background: #ab8f69;
}

.legend-color.checkout:before {
	background: #fafafa;
}

.action-buttons {
	margin-right: -16px;
}

.action-buttons .btn {
	min-width: 185px;
	min-height: 48px;
	padding: 14px 20px;
	margin-right: 16px;
}

@media (max-width: 1200px) {

	.weekday,
	.day-cell {
		width: 24px;
		flex-shrink: 0;
	}

	.calendar-wrapper {
		overflow-y: hidden;
		overflow-x: auto;
	}

	#current-month-display {
		display: none;
	}

	.apartments-list {
		position: relative;
	}

	.apartments-list:after {
		content: "";
		width: 1px;
		height: 100%;
		position: absolute;
		top: 0;
		right: 0;
		background: #e4e4e5;
	}

	.apartments-container {
		padding-top: 20px;
		padding-right: 0;
		align-items: flex-start;
	}

	.apartments {
		border-bottom: none;
		border-left: none;
	}

	.apartment-item {
		border-left: 1px solid #e4e4e5;
	}

	.apartment-item:last-child {
		height: 25px;
		border-bottom: 1px solid #e4e4e5;
	}

	.calendar-rows {
		border: none;
	}

	.calendar-row {
		border: none;
	}

	.calendar-row:last-child .day-cell {
		height: 25px;
		border-bottom: 1px solid #e4e4e5;
	}

	.weekdays-header {
		border-left: none;
	}

	.selection-item {
		width: 50%;
	}
}

@media (max-width: 991px) {
	.legend {
		justify-content: space-between;
	}

	.legend-item {
		padding-right: 0;
	}
}

@media (max-width: 767px) {
	.calendar-header {
		text-align: center;
	}

	.calendar-controls {
		padding-bottom: 20px;
		display: block;
	}

	.month-navigation {
		width: auto;
		margin-right: 0;
	}

	.month-header,
	.action-buttons {
		margin-right: 0;
	}

	.month-header .btn,
	.action-buttons .btn {
		width: 100%;
		margin-bottom: 20px;
	}

	.month-header .btn:last-child,
	.action-buttons .btn:last-child {
		margin-bottom: 0;
	}

	.apartments-container {
		padding: 15px 0 138px 15px;
	}

	.apartments-list {
		width: 154px;
	}

	.apartment-item .name {
		font-size: 12px;
	}

	.legend {
		height: 123px;
		margin-bottom: -103px;
		display: block;
		padding: 15px 15px 0;
		bottom: 123px;
	}

	.legend:before {
		width: 100%;
		left: 0;
	}

	.legend-item {
		margin-bottom: 11px;
		padding-right: 0;
		padding-left: 29px;
	}

	.legend-item:last-child {
		margin-bottom: 0;
	}

	.legend-color {
		width: 24px;
		height: 24px;
		margin-top: -12px;
	}

	.legend-color+span {
		min-height: 24px;
		font-size: 14px;
	}

	.selection-panel {
		margin-bottom: 20px;
	}

	.selection-info h3 {
		font-size: 24px;
	}

	.selection-item {
		width: 100%;
	}
}