/* Villa card, Figma component 370:450 */

.villa-card {
	position: relative;
	width: 499px;
	height: 749px;
	text-align: center;
}

.villa-card + .villa-card {
	margin-top: 59px;
}

.villa-card__title,
.villa-card__text,
.villa-card__media,
.villa-card__actions {
	position: absolute;
	left: 34px;
	width: 431px;
}

.villa-card__title {
	top: 11px;
	color: var(--bronze);
}

.villa-card__text {
	top: 121px;
	color: var(--stone);
	font-size: 20px;
	line-height: 24px;
}

.villa-card__media {
	top: 186px;
	height: 503px;
	overflow: hidden;
}

.villa-card__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.villa-card__shade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 246px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 6.911%, rgba(0, 0, 0, 0.48) 71.042%, #000 140.04%);
}

.villa-card__amenities {
	position: absolute;
	left: 2px;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: flex-end;
	margin: 0;
	padding: 0 16px 24px;
	list-style: none;
}

.villa-card__amenities li {
	position: relative;
	display: flex;
	flex: 1 0 0;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 1px;
	color: #fff;
	font-family: "Inter", var(--sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	white-space: pre;
}

.villa-card__amenities li + li::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 1px;
	height: 60px;
	background: #e5e5e5;
}

.villa-card__amenities img {
	width: 32px;
	height: 32px;
}

.bed-icon {
	position: relative;
	width: 32px;
	height: 32px;
}

.bed-icon span {
	position: absolute;
	border: 1.5px solid #fff;
}

.bed-icon span:nth-child(1),
.bed-icon span:nth-child(2) {
	left: 6px;
	width: 20px;
	height: 2px;
	border-radius: 1px;
}

.bed-icon span:nth-child(1) {
	top: 4px;
}

.bed-icon span:nth-child(2) {
	top: 22px;
}

.bed-icon span:nth-child(3),
.bed-icon span:nth-child(4) {
	top: 10px;
	width: 6px;
	height: 5px;
	border-radius: 2px;
}

.bed-icon span:nth-child(3) {
	left: 8px;
}

.bed-icon span:nth-child(4) {
	left: 18px;
}

.villa-card__arrow {
	position: absolute;
	top: 432px;
	width: 12px;
	height: 22px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.villa-card__arrow--prev {
	left: 0;
}

.villa-card__arrow--next {
	right: 0;
	transform: scaleX(-1);
}

.villa-card__actions {
	top: 729px;
	display: flex;
	justify-content: space-between;
	white-space: nowrap;
}

/* Swipe or drag the photo to browse the gallery. */
.villa-card__media[data-cursor] {
	touch-action: pan-y;
	user-select: none;
	cursor: grab;
}

.villa-card__media.is-dragging {
	cursor: grabbing;
}
