/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family:
		"Poppins",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Oxygen,
		Ubuntu,
		Cantarell,
		sans-serif;
}

/* Swiper pagination bullet styles */
.swiper-pagination-bullet {
	width: 30px;
	border-radius: 5px;
	background: rgb(153 27 27);
}

/* Main container */
.main-container {
	width: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100vh;
	border-radius: 0.75rem; /* rounded-xl */
	overflow: hidden;
}

/* Swiper container */
.swiper.default-carousel.swiper-container {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.swiper-wrapper {
	height: 100%;
	width: 100%;
	flex: 1;
	min-height: 0;
}

.swiper-slide {
	height: 100%;
	width: 100%;
}

/* Window controls bar */
.window-controls {
	display: flex;
	gap: 0.5rem; /* gap-2 */
	background-color: rgb(31 41 55); /* bg-gray-800 */
	padding: 0.75rem; /* p-3 */
}

.window-control {
	height: 0.75rem; /* h-3 */
	width: 0.75rem; /* w-3 */
	border-radius: 9999px; /* rounded-full */
}

.window-control-green {
	background-color: rgb(34 197 94); /* bg-green-500 */
}

.window-control-amber {
	background-color: rgb(245 158 11); /* bg-amber-500 */
}

.window-control-red {
	background-color: rgb(239 68 68); /* bg-red-500 */
}

/* Slide content */
.slide-content {
	border-radius: 1rem; /* rounded-2xl */
	border-top-left-radius: 0;
	border-top-right-radius: 0; /* rounded-t-none */
	height: 100%;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-size: cover;
	position: relative;
	background-repeat: no-repeat;
	background-position: center 15%;
}

.slide-content--video {
	background: none;
	align-items: flex-start;
	justify-content: center;
	padding-top: 0;
}

.tour-video {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* Agent video page: video fills viewport and plays on load */
body.page-agent-video .window-controls,
body.page-agent-video .swiper-pagination {
	display: none;
}

body.page-agent-video .slide-content--video {
	position: fixed;
	inset: 0;
	z-index: 5;
	background: #000;
	align-items: center;
	justify-content: center;
}

body.page-agent-video .tour-video--fullscreen {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.agent-back-btn {
	position: fixed;
	bottom: 1.25rem;
	left: 1.25rem;
	z-index: 10;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	background: rgb(31 41 55);
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	transition: background 0.2s, transform 0.2s;
}

.agent-back-btn:hover {
	background: rgb(55 65 81);
	transform: translateY(-1px);
	color: #fff;
}

/* Swiper pagination */
.swiper-pagination {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
}

.tour-card {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	padding: 1rem;
	border-radius: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	max-width: 360px;
	position: absolute;
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.3),
		0 0 0 1px rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.tour-card-header {
	font-size: 1.75rem;
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.tour-card-content {
	font-size: 1rem;
	color: #4a5568;
	line-height: 1.6;
	font-weight: 400;
}

.tour-card-button {
	background: #d90429;
	color: #ffffff;
	padding: 0.875rem 2rem;
	border-radius: 0.75rem;
	border: none;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(217, 4, 41, 0.4);
	font-family: "Poppins", sans-serif;
	letter-spacing: 0.01em;
}

.tour-card-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(217, 4, 41, 0.5);
	background: #d90429;
}

.tour-card-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 10px rgba(217, 4, 41, 0.4);
}

/* Tour picker button (bottom left, fully rounded with icon) */
.tour-picker-btn {
	position: fixed;
	bottom: 1.25rem;
	left: 1.25rem;
	z-index: 10;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border-radius: 50%;
	border: none;
	background: rgb(153 27 27);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	transition:
		background 0.2s,
		transform 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tour-picker-btn:hover {
	background: rgb(153 27 27);
	transform: translateY(-1px);
}

.tour-picker-btn-icon {
	flex-shrink: 0;
}

/* Tour picker popup overlay */
.tour-picker-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 0 0 1.25rem 4.75rem;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.2s,
		visibility 0.2s;
}

.tour-picker-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.tour-picker-popup {
	position: relative;
	background: #fff;
	border-radius: 1rem;
	padding: 1.5rem 2rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	min-width: 320px;
}

.tour-picker-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 1.25rem;
}

.tour-picker-actions {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.tour-picker-button {
	display: block;
	padding: 0.5rem 0.25rem;
	font-family: "Poppins", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	text-decoration: none;
	color: #1a1a1a;
	background-color: #d8dbe1;
	background: transparent;
	transition: background 0.15s;
	border: none;
	border-radius: 0;
	text-align: left;
}

.tour-picker-button:hover {
	background: #d8dbe1;
	color: #1a1a1a;
}

.tour-picker-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 2rem;
	height: 2rem;
	border: none;
	background: transparent;
	color: #6b7280;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 0.25rem;
	transition:
		color 0.2s,
		background 0.2s;
}

.tour-picker-close:hover {
	color: #1a1a1a;
	background: #f3f4f6;
}
