// Variables & Mixins
@import "../../../../themes/everse/assets/sass/base/_variables";
@import "../../../../themes/everse/assets/sass/base/_mixins.scss";

/*-------------------------------------------------------*/
/* Destinations
/*-------------------------------------------------------*/
.destination {
	position: relative;

	&__container {
		position: relative;
		border-radius: 5px;
		overflow: hidden;
	}

	&__wrapper {
		height: 480px;
		display: flex;
		flex-direction: column;
		position: relative;
		padding: 20px;
	}

	&__thumb {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		display: block;
		height: 100%;
		@include background-img-cover;

		// make it more specific to fix lazyload
		.destination__wrapper & {
			transition: $transition-all;
		}
	}

	&__content {
		position: relative;
		margin-top: auto;
		text-align: center;
	}

	&__title {
		font-size: 1.5rem;
	}

	&__category {
		text-transform: uppercase;
		font-weight: 700;
		font-size: 0.875rem;
		letter-spacing: 2px;
	}

	&.has-post-thumbnail {
		.destination__category,
		.destination__title {
			color: #fff;
		}
	}

	&:focus &__thumb,
	&:hover &__thumb {
		transform: scale(1.2, 1.2);
	}
}
