/* Stay pages (/stays/<slug>): photo carousel controls and the phone booking bar.
   Loaded after enrich.css and date-range.css; behaviour lives in /js/stay-page.js. */

/* ---------- Photo carousel ---------- */
#myCarousel { touch-action: pan-y; }
#myCarousel .carousel-inner > .item > img { width: 100%; }
/* Short landscape screens: keep the photo shorter than the screen */
@media (orientation: landscape) and (max-height: 500px) {
	#myCarousel .carousel-inner > .item > img { max-height: 75vh; object-fit: cover; }
}

/* Dots: a 24x24 hit area around the visible 10px dot */
#myCarousel .carousel-indicators { bottom: 4px; margin-bottom: 0; }
#myCarousel .carousel-indicators li,
#myCarousel .carousel-indicators li.active {
	position: relative;
	width: 24px;
	height: 24px;
	margin: 0 2px;
	border: 0;
	border-radius: 50%;
	background: transparent;
}
#myCarousel .carousel-indicators li::before {
	content: "";
	position: absolute;
	inset: 7px;
	border: 1px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(31, 51, 32, 0.35);
}
#myCarousel .carousel-indicators li.active::before { inset: 6px; background: #fff; }

/* Previous and next buttons */
.vs-carousel__btn {
	position: absolute;
	top: 50%;
	z-index: 15;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(31, 51, 32, 0.62);
	color: #fff;
	cursor: pointer;
	transition: background-color 250ms ease;
}
.vs-carousel__btn:hover, .vs-carousel__btn:focus-visible { background: var(--vs-green-800); }
.vs-carousel__btn--prev { left: 10px; }
.vs-carousel__btn--next { right: 10px; }
.vs-carousel__btn .vs-icon { width: 20px; height: 20px; }
.vs-carousel__btn--prev .vs-icon { transform: rotate(90deg); }
.vs-carousel__btn--next .vs-icon { transform: rotate(-90deg); }

/* ---------- Amenities (plain list, no links) ---------- */
#features.version-2 ul li { color: var(--vs-text); }

/* ---------- Phone booking bar ---------- */
.vs-stay-bar { display: none; }
@media (max-width: 991px) {
	.vs-stay-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 20;
		display: flex;
		gap: 12px;
		align-items: center;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.08), 0 -8px 20px -14px rgba(31, 51, 32, 0.35);
		transition: transform 250ms var(--vs-ease-out, ease), visibility 0s linear 0s;
	}
	.vs-stay-bar.is-off {
		transform: translateY(110%);
		visibility: hidden;
		transition: transform 250ms var(--vs-ease-out, ease), visibility 0s linear 250ms;
	}
	.vs-stay-bar__text { flex: 1 1 auto; min-width: 0; margin: 0; line-height: 1.25; }
	.vs-stay-bar__kind {
		display: block;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		font-size: 13px;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--vs-label-ink, #7f5a22);
	}
	.vs-stay-bar__name {
		display: block;
		overflow: hidden;
		font-family: var(--vs-font-display);
		font-size: 19px;
		font-weight: 500;
		color: var(--vs-ink);
		white-space: nowrap;
		text-overflow: ellipsis;
	}
	a.btn_1.vs-stay-bar__go {
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.5em;
		min-height: 44px;
		margin: 0;
		padding: 12px 16px;
	}
	body.has-stay-bar { padding-bottom: var(--vs-stay-bar-h, 68px); }
	body.has-stay-bar #toTop { bottom: calc(var(--vs-stay-bar-h, 68px) + 8px); }
	/* Back-to-top never covers the date picker or guest controls */
	body.has-stay-bar.stay-form-in-view #toTop { visibility: hidden; }
}

/* Narrow phones: the booking box reaches 10px into the column gutter so the calendar inside
   (date-range.css) can give each day cell 44px. */
@media (max-width: 479px) {
	#sidebar .box_style_2 { margin-left: -10px; margin-right: -10px; padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.vs-carousel__btn, .vs-stay-bar, .vs-stay-bar.is-off { transition: none; }
}
