occupancy-layer {
	display: block;
	position: relative;
	&:empty {
		background: #ededed;
		width: 100%;
		min-width: 130px;
		height: 100%;
		height: 55px;
		max-height: 55px;
		position:relative;
		&:after {
			content:'';
			display: block;
			position: absolute;
			top: 0;
			bottom: 0;
			left: 0;
			right: 0;
			z-index: 2;
			background-image: linear-gradient( 90deg, rgba(#fff, 0), rgba(#fff, 0.5) 50%, rgba(#fff, 0) 100% );
			background-position: -100% 0;
			background-size: 50% 100%;
			background-repeat: no-repeat;
			animation: shineoccupancyanimation 1s infinite;
		}
	}
}
@keyframes shineoccupancyanimation {
	to {
		background-position: 150% 0;
	}
}
.occupancy-layer-fieldset {
	.form-group {
		margin-bottom: 0;
	}
}
.searchToggle {
	&__btn {
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		background-color: #FFFFFF;
		font-size: 16px;
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 40px;
		margin: 0;
		padding: 6px 10px;
		min-width: 130px;
		cursor: pointer;
		.includes_error & {
			border: 1px solid $brand-red !important;
			.searchToggle__txt {
				padding-right: 35px;
				background-repeat: no-repeat;
				background-position: right 10px bottom 3px;
				background-image: url('/headers/ilusion/'+ $assets-folder +'/dist/svg/icon-ownfill-graph-error-circle-e50000.svg');
				background-size: 18px 18px;
			}
		}
		.includes_error.form-group label:not(.sr-only) + &.form-control {
			padding-right: 15px;
		}
		.includes_warning & {
			border: 1px solid #c1a655 !important;
		}
	}
	&__txt {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		padding-right: 15px;
		flex: 1 1 auto;
		text-align: left;
	}
	&__icon {
		width: 10px;
		height: 10px;
		vertical-align: middle;
		display: inline-block;
		&, & * {
			fill: $brand-copy-light;
		}
	}
}


.searchDropdown {
	background-color: #FFFFFF;
	border: solid 1px $input-border;
	border-radius: $btn-border-radius-base;
	box-shadow: 0 1px 7px 0 rgba(0, 0, 0, 0.18);
	min-width: 300px;
	position: absolute;
	left: 0;
	z-index: 16;
	opacity: 1;
	transition: opacity 0.5s;
	@media (min-width: $grid-float-breakpoint) {
		&.searchDropup {
			bottom: 100%;
		}
	}
	@media (min-width: $grid-float-breakpoint) and (max-width: 1300px) {
		left: auto;
		right: 0;
		.multidestinos + .occupancy_container & {
			right: auto;
			left: 0;
		}
	}
	.widebody & {
		@media (min-width: $grid-float-breakpoint) {
			left: auto;
			right: 0;
		}
	}
	.includes_error + & {
		@media (min-width: $grid-float-breakpoint) {
			margin-top: -21px;
		}
	}
	@media (min-width: $grid-float-breakpoint) and (max-width: $screen-sm-max) {
		.multidestinos[style*='display: none'] + .occupancy_container & {
			left: 0;
			right: auto;
		}
	}
	@media (min-width: $screen-md-min) and (max-width: 1300px) {
		.multidestinos[style*='display: none'] + .occupancy_container & {
			right: 0;
			left: auto;
		}
	}
	&.transitioning {
		opacity: 0;
		display: block;
	}
	&.hidden {
		opacity: 0;
		&.transitioning {
			display: block !important;
		}
	}
	&__footer {
		display: flex;
		flex-wrap: nowrap;
		justify-content: space-between;
		align-items: center;
		padding: 15px;
		border-top: 1px solid $brand-grey-medium;
		border-bottom-left-radius: $btn-border-radius-base;
		border-bottom-right-radius: $btn-border-radius-base;
		.btn-link, .btn-interactive {
			font-size: $font-size-base;
			color: $interactive-color;
			&:hover, &:focus {
				color: $interactive-color-hover;
			}
			@media (max-width: $grid-float-breakpoint-max) {
				font-size: $font-size-large;
			}
		}
		.btn-interactive {
			margin-left: auto;
		}
	}
}
@media (min-width: 768px) {
	.widebody .multidestinos + .occupancy_container .searchDropdown {
		right: auto;
		left: 0;
	}
}
.searchGroups {
	overflow: auto;
	background: linear-gradient(white 30%, rgba(255,255,255,0)), linear-gradient(rgba(0, 0, 0, 0.12) 0, rgba(255,255,255,0));
	background-size: 100% 14px, 100% 7px;
	background-repeat: no-repeat;
	background-attachment: local, scroll;
	max-height: 100%;
	border-top-left-radius: $btn-border-radius-base;
	border-top-right-radius: $btn-border-radius-base;
}
.searchGroup {
	& + .searchGroup {
		border-top: 1px solid $brand-grey-medium;
	}
	&__title {
		display: flex;
		flex-wrap: nowrap;
		padding: 15px 15px 5px 15px;
		align-items: center;
	}
	&__titletext {
		color: $brand-copy-light;
		font-size: $font-size-base;
		text-transform: uppercase;
		@media (max-width: $grid-float-breakpoint-max) {
			font-size: $font-size-large;
		}
	}
	&__delete {
		margin-left: auto;
		font-size: $font-size-base;
		@media (max-width: $grid-float-breakpoint-max) {
			font-size: $font-size-large;
		}
	}
	.btn-link {
		font-size: $font-size-base;
		color: $interactive-color;
		&:hover, &:focus {
			color: $interactive-color-hover;
		}
		@media (max-width: $grid-float-breakpoint-max) {
			font-size: $font-size-large;
		}
	}
}
.searchOption {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	min-height: 55px;
	padding: 10px 15px;
	& + .searchOption {
		border-top: 1px solid $brand-grey-medium;
	}
	&__label {
		&, & label {
			@include medium-weight;
			font-size: $font-size-base;
			color: $brand-grey-dark;
			@media (max-width: $grid-float-breakpoint-max) {
				font-size: $font-size-large;
			}
		}
	}
	&__detail {
		color: $brand-copy-light;
		font-weight: $roboto-light;
		font-size: 12px;
		line-height: 1;
		@media (max-width: $grid-float-breakpoint-max) {
			font-size: $font-size-base;
		}
	}
}
.noChildren-message {
	color: $brand-copy-light;
	font-size: 14px;
	font-weight: $roboto-light;
	text-align: left;
	flex: 0 1 auto;
	padding: 0 15px 15px;
}

.searchAddAge {
	flex: 1 1 auto;
	margin-top: 15px;
	width: 100%;
	p {
		font-size: $font-size-base;
		color: $brand-grey-dark;
		@media (max-width: $grid-float-breakpoint-max) {
			font-size: $font-size-large;
		}
	}
	&__items {
		display: flex;
		flex-wrap: wrap;
		margin: 0 -10px -10px;
	}
	&__select {
		width: 60px;
		margin-left: 10px;
		margin-bottom: 10px;
		padding-left: 5px !important;
		padding-right: 20px !important;
	}
}

.searchCounter {
	display: flex;
	align-items: center;
	&__input {
		@include medium-weight;
		margin: 0 15px;
		appearance: none;
		border: 0;
		background: transparent;
		padding: 0;
		flex: 0 0 auto;
		max-width: 14px;
		text-align: center;
		color: $brand-grey-dark;
		font-size: 16px;
	}
	&__btn {
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		background: #FFFFFF;
		color:  $interactive-color;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: 1px solid $interactive-color;
		border-radius: 50%;
		width: 30px;
		height: 30px;
		padding:0;
		.icon {
			width: 18px;
			height: 18px;
			&, & * {
				fill: $interactive-color;
			}
		}
		&:hover, &:focus {
			border: 1px solid $interactive-color-hover;
			color:  $interactive-color-hover;
			.icon {
				&, & * {
					fill: $interactive-color-hover;
				}
			}
		}
		&:disabled {
			border: 1px solid $brand-brown-medium;
			color:  $brand-brown-medium;
			cursor: default;
			&:hover {
				border: 1px solid $brand-brown-medium;
				color:  $brand-brown-medium;
				.icon {
					&, & * {
						fill: $brand-brown-medium;
					}
				}
			}
			.icon {
				&, & * {
					fill: $brand-brown-medium;
				}
			}
		}
	}
}

@media (max-width: $grid-float-breakpoint-max) {
	.searchToggle__btn {
		max-width: 100%;
		width: 100%;
	}
	.searchDropdown {
		display: flex;
		flex-direction: column;
		border-radius: 0;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		position: fixed;
		z-index: 100000;
		&__footer {
			margin-top: auto;
			flex-wrap: wrap;
			flex: 1 1 auto;
			align-items: flex-start;
			.btn-link, .btn-interactive {
				margin-bottom: 15px;
				width: 100%;
			}
			.btn-link {
				text-align: left;
			}
			.btn-interactive {
				margin-top: auto;
				background: $interactive-color;
				color: #fff;
			}
		}
		button.close {
			height: 50px;
			width: 100%;
			padding: 15px;
			text-align: left;
		}
	}
	.searchAddAge__items {
		max-width: 343px;
	}
}
