/* Kortez Tour Page Layout widget — two-column page (Figma node 288:1139) */

.ktp-tour-page {
	background-color: #f2f2f2;
	padding: 64px 0;
	font-family: 'Inter', sans-serif;
	color: #000000;
}

.ktp-container {
	max-width: 1128px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ===== Two-column layout (main + 354px sidebar) ===== */

.ktp-page {
	display: grid;
	grid-template-columns: 1fr 354px;
	gap: 0 64px;
}

.ktp-page__main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.ktp-page__sidebar {
	min-width: 0;
}

/* Inner wrapper is the sticky element. */
.ktp-page__sidebar-inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 24px;
	z-index: 1;
}

/* `position: sticky` dies if ANY ancestor has overflow other than visible.
   These overrides ONLY apply at desktop sizes — on mobile/tablet sticky is
   disabled anyway, so we keep the theme's overflow handling intact (otherwise
   the body becomes scrollable horizontally and slick + long text overflow). */
@media (min-width: 992px) {
	.ktp-tour-page,
	.ktp-container,
	.ktp-page,
	.ktp-page__main,
	.ktp-page__sidebar,
	.elementor-widget-kortez_tour_page,
	.elementor-widget-kortez_tour_page > .elementor-widget-container,
	.elementor-section:has(.ktp-tour-page),
	.elementor-inner-section:has(.ktp-tour-page),
	.elementor-container:has(.ktp-tour-page),
	.elementor-row:has(.ktp-tour-page),
	.elementor-column:has(.ktp-tour-page),
	.elementor-column-wrap:has(.ktp-tour-page),
	.elementor-widget-wrap:has(.ktp-tour-page),
	.e-con:has(.ktp-tour-page),
	.e-con-inner:has(.ktp-tour-page),
	.e-flex:has(.ktp-tour-page) {
		overflow: visible !important;
	}

	html:has(.ktp-tour-page),
	body:has(.ktp-tour-page) {
		overflow: visible !important;
	}
}

/* ===== Section primitives ===== */

.ktp-section {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.ktp-section__head {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ktp-section__title {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 28px;
	line-height: 1.2;
	margin: 0;
	color: #000000;
}

.ktp-section__intro {
	font-size: 16px;
	line-height: 1.6;
	color: #000000;
	margin: 0;
}

.ktp-section__body {
	font-size: 16px;
	line-height: 1.6;
	color: #000000;
}

.ktp-section__body p { margin: 0 0 1em; }
.ktp-section__body p:last-child { margin-bottom: 0; }

/* ===== Hero ===== */

.ktp-hero { gap: 32px; }

.ktp-hero__gallery {
	position: relative;
	width: 100%;
}

/* Pre-slick (and graceful fallback if JS fails) */
.ktp-hero__gallery:not(.slick-initialized) {
	display: flex;
	gap: 12px;
}

.ktp-hero__gallery:not(.slick-initialized) .ktp-hero__thumb {
	flex: 1;
	min-width: 0;
}

.ktp-hero__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 310 / 239;
	overflow: hidden;
	border-radius: 8px;
	cursor: pointer;
}

.ktp-hero__thumb-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	line-height: 0;
}

.ktp-hero__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.ktp-hero__thumb:hover img {
	transform: scale(1.03);
}

/* Slick slider styling */
.ktp-hero__gallery.slick-initialized .slick-list  { margin: 0 -6px; }
.ktp-hero__gallery.slick-initialized .slick-slide { padding: 0 6px; }
.ktp-hero__gallery.slick-initialized .slick-slide > div { line-height: 0; }

/* ===== Steps (What to Expect) ===== */

.ktp-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.ktp-step {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ktp-step__label {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.04em;
	line-height: 1.2;
	color: #929292;
}

.ktp-step__title {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
	color: #000000;
	margin: 0;
}

.ktp-step__desc {
	font-size: 16px;
	line-height: 1.6;
	color: #000000;
	margin: 0;
}

/* ===== Story sections ===== */

.ktp-story { gap: 10px; }

/* ===== Info cards (dark header + body) ===== */

.ktp-info-card {
	background-color: #ffffff;
	border-radius: 14px;
	overflow: hidden;
}

.ktp-info-card__header {
	background-color: #292929;
	color: #ffffff;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.02em;
	padding: 16px 28px;
	line-height: 1.2;
}

.ktp-info-card__body {
	padding: 28px;
	color: #000000;
}

ul.ktp-info-card__body,
ol.ktp-info-card__body {
	list-style: none;
	margin: 0;
}

/* ===== Generic check-list ===== */

.ktp-check-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ktp-check-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	line-height: 1.4;
	color: #000000;
}

.ktp-icon {
	color: #55a1ac;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
}

.ktp-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ktp-check-text { flex: 1; min-width: 0; }

/* Bring & Wear stacks the two info cards under the section head */
.ktp-bring { gap: 24px; }

/* ===== Sidebar overview list ===== */

.ktp-overview-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.ktp-overview-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ktp-overview-item:first-child { padding-top: 0; }
.ktp-overview-item:last-child  { border-bottom: 0; padding-bottom: 0; }

.ktp-overview-icon {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	background-color: #f6bb06;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 16px;
}

.ktp-overview-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ktp-overview-meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ktp-overview-label {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.04em;
	line-height: 1.2;
	color: #929292;
}

.ktp-overview-value {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.4;
	color: #000000;
}

/* ===== FAQ accordion ===== */

.ktp-faq {
	display: flex;
	flex-direction: column;
}

.ktp-faq__item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ktp-faq__item:last-child { border-bottom: 0; }

.ktp-faq__question {
	all: unset;
	box-sizing: border-box;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
	cursor: pointer;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.6;
	color: #000000;
	text-align: left;
}

.ktp-faq__question:focus-visible {
	outline: 2px solid #55a1ac;
	outline-offset: 4px;
	border-radius: 4px;
}

.ktp-faq__q-text { flex: 1; min-width: 0; }

.ktp-faq__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #000000;
	transition: transform 0.2s ease;
}

.ktp-faq__item.is-open .ktp-faq__icon {
	transform: rotate(45deg);
}

.ktp-faq__answer {
	overflow: hidden;
	font-size: 16px;
	line-height: 1.6;
	color: #000000;
}

.ktp-faq__answer-inner { padding: 0 0 18px; }
.ktp-faq__answer-inner p { margin: 0 0 1em; }
.ktp-faq__answer-inner p:last-child { margin-bottom: 0; }

/* ===== Sticky booking bar ===== */

.ktp-booking-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	background-color: #ffffff;
	box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
	font-family: 'Poppins', sans-serif;
	color: #000000;
}

.ktp-booking-bar__inner {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 20px 24px;
}

.ktp-booking-bar__info {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 24px;
}

.ktp-booking-bar__text {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-size: 20px;
	line-height: 1.2;
	color: inherit;
}

.ktp-booking-bar__title    { font-weight: 700; }
.ktp-booking-bar__subtitle { font-weight: 400; }

.ktp-booking-bar__price {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	color: inherit;
}

.ktp-booking-bar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #ffc750;
	color: #313e64;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
	padding: 20px 32px;
	border-radius: 100px;
	text-decoration: none;
	white-space: nowrap;
	transition: filter 0.15s ease;
}

.ktp-booking-bar__btn:hover,
.ktp-booking-bar__btn:focus {
	filter: brightness(0.95);
	text-decoration: none;
	color: #313e64;
}

.ktp-has-bar { padding-bottom: 64px; }

/* ===== Responsive (Figma mobile node 375:2) ===== */

@media (max-width: 991px) {
	.ktp-tour-page { padding: 24px 0; }

	/* Stack columns; sidebar moves to the top, main below. */
	.ktp-page {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.ktp-page__sidebar { order: -1; }
	.ktp-page__main {
		order: 0;
		gap: 64px;
	}

	/* Disable sticky on tablet/mobile. */
	.ktp-page__sidebar-inner {
		position: static !important;
		top: auto;
	}

	/* Sidebar cards use tighter padding on mobile (Bring/Good-to-know keep 28px). */
	.ktp-page__sidebar .ktp-info-card__body { padding: 20px; }
}

@media (max-width: 767px) {
	.ktp-tour-page { padding: 24px 0; }

	/* Mobile body text 14px (headings keep their sizes). */
	.ktp-section__body,
	.ktp-section__intro,
	.ktp-step__desc,
	.ktp-faq__question,
	.ktp-faq__answer {
		font-size: 14px;
	}

	/* Sticky booking bar */
	.ktp-booking-bar__inner {
		padding: 16px 24px;
		gap: 12px;
		align-items: center;
	}
	.ktp-booking-bar__info {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.ktp-booking-bar__text { font-size: 14px; line-height: 1.2; }
	.ktp-booking-bar__title,
	.ktp-booking-bar__subtitle { display: inline; }
	.ktp-booking-bar__price { font-size: 14px; }
	.ktp-booking-bar__btn { font-size: 16px; padding: 16px 24px; }
	.ktp-has-bar { padding-bottom: 48px; }

	/* Lift the CookieYes revisit badge above the booking bar on mobile. */
	body:has(.ktp-has-bar) .cky-revisit-bottom-left { bottom: 100px; }
}

@media (max-width: 360px) {
	.ktp-booking-bar__inner { padding: 12px 16px; }
	.ktp-booking-bar__btn { padding: 14px 18px; font-size: 14px; }
}
