/* Photo Tour — Styles */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap');

.ptour-wrapper {
	--ptour-transition-speed: 800ms;
	--ptour-badge-speed: 16s;
	width: 100%;
}

.ptour-grid {
	display: grid;
	grid-template-columns: 0.85fr 1fr;
	gap: 60px;
	align-items: start;
}

/* ---------------- Left column ---------------- */
.ptour-title {
	font-family: 'Cinzel', Georgia, serif;
	font-size: 46px;
	font-weight: 700;
	color: #7E97A6;
	text-transform: uppercase;
	margin: 0 0 14px 0;
	line-height: 1.15;
}

.ptour-subtitle {
	font-size: 16px;
	font-style: italic;
	color: #3a3a3a;
	margin: 0 0 30px 0;
}

.ptour-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ptour-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	font-family: 'Cinzel', Georgia, serif;
	text-transform: uppercase;
	padding: 10px 0;
	cursor: pointer;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 2px;
	color: #2b2b2b;
	transition: color 0.5s ease, letter-spacing 0.5s ease;
	-webkit-tap-highlight-color: transparent;
}

.ptour-item::after {
	content: "";
	flex: 1;
	height: 1px;
	background-color: #7E97A6;
	transform: scaleX(0);
	transform-origin: left;
	opacity: 0;
	transition: transform 0.6s ease, opacity 0.6s ease;
}

.ptour-item:hover,
.ptour-item.active {
	color: #7E97A6;
	letter-spacing: 4px;
}

.ptour-item:hover::after,
.ptour-item.active::after {
	transform: scaleX(1);
	opacity: 1;
}

/* ---------------- Right column: sliding image ---------------- */
.ptour-col-image {
	position: relative;
}

.ptour-image {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 650px;
	background-color: #ece7e0;
}

.ptour-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	opacity: 0;
	z-index: 1;
	transform: translateX(0);
	transition: transform var(--ptour-transition-speed) cubic-bezier(0.25, 0.1, 0.25, 1), opacity var(--ptour-transition-speed) cubic-bezier(0.25, 0.1, 0.25, 1);
	will-change: transform, opacity;
}

.ptour-slide.active {
	opacity: 1;
	z-index: 2;
	transform: translateX(0);
}

/* Directional exit/enter states applied briefly by JS during a transition */
.ptour-slide.ptour-enter-from-right {
	transform: translateX(100%);
	opacity: 0;
}

.ptour-slide.ptour-enter-from-left {
	transform: translateX(-100%);
	opacity: 0;
}

.ptour-slide.ptour-exit-to-left {
	transform: translateX(-100%);
	opacity: 0;
}

.ptour-slide.ptour-exit-to-right {
	transform: translateX(100%);
	opacity: 0;
}

/* ---------------- Rotating circular badge ---------------- */
.ptour-badge-circle {
	position: absolute;
	width: 130px;
	height: 130px;
	border-radius: 50%;
	background-color: #ffffff;
	box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.25);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ptour-badge-bottom-left { left: -20px; bottom: -20px; }
.ptour-badge-bottom-right { right: -20px; bottom: -20px; }
.ptour-badge-top-left { left: -20px; top: -20px; }
.ptour-badge-top-right { right: -20px; top: -20px; }

.ptour-badge-svg {
	width: 100%;
	height: 100%;
	animation: ptourRotate var(--ptour-badge-speed) linear infinite;
}

.ptour-badge-svg text {
	font-family: 'Cinzel', Georgia, serif;
	font-size: 10.5px;
	letter-spacing: 1.5px;
	fill: #3a3a3a;
	text-transform: uppercase;
}

.ptour-badge-dot {
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #7E97A6;
}

@keyframes ptourRotate {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* ---------------- Entrance animation ---------------- */
.ptour-wrapper[data-entrance="true"] .ptour-entrance-item {
	opacity: 0;
	transform: translateY(16px);
}

.ptour-wrapper[data-entrance="true"] .ptour-entrance-item.ptour-in-view {
	animation-name: ptourFadeUp;
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	animation-fill-mode: forwards;
}

@keyframes ptourFadeUp {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
	.ptour-grid { grid-template-columns: 1fr; gap: 36px; }
	.ptour-image { height: 420px; }
	.ptour-title { font-size: 34px; }
	.ptour-item { font-size: 18px; }
	.ptour-badge-circle { width: 100px; height: 100px; }
}

@media (max-width: 600px) {
	.ptour-image { height: 320px; }
	.ptour-item { font-size: 15px; gap: 12px; }
	.ptour-badge-circle { width: 80px; height: 80px; left: -10px; right: -10px; }
	.ptour-badge-svg text { font-size: 8px; }
}
