/*
 * Product Sections: The Plus Tabs & Tours, dressed as the product-page tabs it
 * replaced (tjl-product-page "tjl-pp-tabs": gold underline strip over a
 * fixed-height box that scrolls inside itself).
 *
 * Every rule is under the widget's own marker class, twice-qualified
 * (.tjl-ps-tabs.elementor-widget-tp-tabs-tours), so it outranks The Plus's
 * one-class defaults without !important and never reaches another Tabs & Tours
 * on the site. Tokens are declared here, where the rules use them.
 */

.tjl-ps-details,
.tjl-ps-tabs.elementor-widget-tp-tabs-tours,
.tjl-ps-head {
	--ps-purple: #8441C0;
	--ps-deep: #3A1259;
	--ps-gold: #D9A62E;
	--ps-muted: #6B6675;
	--ps-line: #E7DCF2;
	--ps-ground: #FDF8FF;
	--ps-card: #FFFFFF;
	--ps-radius: 18px;
	--ps-shadow: 0 6px 20px -10px rgba(90, 46, 134, 0.16);
	--ps-gold-grad: linear-gradient(135deg, #F7DD9B 0%, #D9A62E 36%, #A9781A 56%, #E8BF55 76%, #F7DD9B 100%);
}

/* ---- the band (column carrying .tjl-ps-details) ----
 * Five classes, so it outranks the column's own responsive padding rule
 * (.elementor-163 .elementor-element.elementor-element-<id> > .elementor-element-populated). */
.elementor-column.elementor-element.tjl-ps-details > .elementor-widget-wrap.elementor-element-populated {
	padding: 38px 20px 34px;
	background: var(--ps-ground);
}
.tjl-ps-details .elementor-widget-shortcode,
.tjl-ps-details .elementor-widget-tp-tabs-tours {
	width: 100%;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}

/* ---- heading ---- */
.tjl-ps-head { text-align: center; margin-bottom: 18px; }
.tjl-ps-head .tjl-ps-head__eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ps-purple);
	margin: 0 0 5px;
}
.tjl-ps-head .tjl-ps-head__title {
	font-family: "Prata", Georgia, serif;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.22;
	font-weight: 400;
	color: var(--ps-deep);
	margin: 0;
	text-transform: none;
	letter-spacing: normal;
}

/* ---- the card ---- */
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .theplus-tabs-wrapper {
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	background: var(--ps-card);
	box-shadow: var(--ps-shadow);
	overflow: hidden;
}

/* ---- the strip: one row that scrolls sideways if it must ---- */
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .theplus-tabs-nav-wrapper {
	display: block;
	border-bottom: 1px solid var(--ps-line);
	background: linear-gradient(180deg, #FBF7FE 0%, #FFFFFF 100%);
	padding: 0 4px;
	text-align: left;
}
.tjl-ps-tabs.elementor-widget-tp-tabs-tours ul.plus-tabs-nav {
	display: flex;
	gap: 2px;
	width: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}
.tjl-ps-tabs.elementor-widget-tp-tabs-tours ul.plus-tabs-nav::-webkit-scrollbar { display: none; }
.tjl-ps-tabs.elementor-widget-tp-tabs-tours ul.plus-tabs-nav li { flex: 0 0 auto; margin: 0; }

.tjl-ps-tabs.elementor-widget-tp-tabs-tours .plus-tab-header {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: auto;
	padding: 14px 16px 13px;
	border: 0;
	background: transparent;
	white-space: nowrap;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: var(--ps-muted);
	transition: color 0.2s ease;
}
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .plus-tab-header::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 0;
	height: 2px;
	border-radius: 2px 2px 0 0;
	background: var(--ps-gold-grad);
	transform: scaleX(0);
	transition: transform 0.25s ease;
}
@media (hover: hover) {
	.tjl-ps-tabs.elementor-widget-tp-tabs-tours .plus-tab-header:hover { color: var(--ps-purple); }
}
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .plus-tab-header.active {
	color: var(--ps-deep);
	font-weight: 600;
}
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .plus-tab-header.active::after { transform: scaleX(1); }

.tjl-ps-tabs.elementor-widget-tp-tabs-tours .tjl-ps-ico {
	display: grid;
	place-items: center;
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #F8F2FD;
	opacity: 0.6;
	transition: opacity 0.2s ease, box-shadow 0.25s ease;
}
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .tjl-ps-ico svg { display: block; width: 18px; height: 18px; }
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .plus-tab-header.active .tjl-ps-ico {
	opacity: 1;
	box-shadow: 0 0 0 2px rgba(217, 166, 46, 0.35);
}
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .tjl-ps-short { display: none; }

/* ---- the box: one fixed height, scrolled internally ---- */
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .theplus-tabs-content-wrapper {
	position: relative;
	padding: 0;
}
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .plus-tab-content {
	height: 310px;
	overflow-y: auto;
	overscroll-behavior-y: contain;
	padding: 20px 24px 24px;
	scrollbar-width: thin;
	scrollbar-color: #D8C6EC transparent;
}
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .plus-tab-content::-webkit-scrollbar { width: 6px; }
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .plus-tab-content::-webkit-scrollbar-thumb { background: #D8C6EC; border-radius: 3px; }
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .theplus-tabs-content-wrapper::after {
	content: "";
	position: absolute;
	left: 1px;
	right: 7px;
	bottom: 0;
	height: 40px;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 92%);
	transition: opacity 0.2s ease;
}
.tjl-ps-tabs.elementor-widget-tp-tabs-tours.is-at-end .theplus-tabs-content-wrapper::after { opacity: 0; }

/* The template's own container must not add space inside the box. */
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .plus-content-editor .e-con { --padding-top: 0; --padding-right: 0; --padding-bottom: 0; --padding-left: 0; padding: 0; }
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .plus-content-editor .elementor-widget-shortcode { margin: 0; }

/* ---- copy ---- */
.tjl-ps-body {
	font-size: 14.5px;
	line-height: 1.62;
	color: var(--ps-muted, #6B6675);
}
.tjl-ps-body > *:first-child { margin-top: 0; }
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .tjl-ps-body p { margin: 0 0 11px; }
.tjl-ps-tabs.elementor-widget-tp-tabs-tours .tjl-ps-body p:last-child { margin-bottom: 0; }
.tjl-ps-body ul,
.tjl-ps-body ol { margin: 0 0 11px; padding-left: 0; list-style: none; }
.tjl-ps-body ul li { position: relative; padding-left: 21px; margin-bottom: 6px; }
.tjl-ps-body ul li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 9px;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	transform: rotate(45deg);
	background: var(--ps-gold, #D9A62E);
}
.tjl-ps-body ol { counter-reset: ps; }
.tjl-ps-body ol li { position: relative; padding-left: 25px; margin-bottom: 6px; counter-increment: ps; }
.tjl-ps-body ol li::before {
	content: counter(ps) ".";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 600;
	color: var(--ps-purple, #8441C0);
}
.tjl-ps-body .tjl-pp-sub {
	margin: 18px 0 7px;
	font-family: "Prata", Georgia, serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--ps-deep, #3A1259);
	text-transform: none;
	letter-spacing: normal;
}
.tjl-ps-body .tjl-pp-sub:first-child { margin-top: 0; }

/* ---- phone: the strip wraps into chips with one-word names ---- */
@media (max-width: 767px) {
	.elementor-column.elementor-element.tjl-ps-details > .elementor-widget-wrap.elementor-element-populated { padding: 26px 14px 24px; }
	.tjl-ps-head { margin-bottom: 14px; }
	.tjl-ps-tabs.elementor-widget-tp-tabs-tours .theplus-tabs-nav-wrapper { padding: 10px 10px 8px; }
	.tjl-ps-tabs.elementor-widget-tp-tabs-tours ul.plus-tabs-nav { flex-wrap: wrap; gap: 6px; overflow: visible; }
	.tjl-ps-tabs.elementor-widget-tp-tabs-tours .plus-tab-header {
		padding: 7px 12px 7px 8px;
		gap: 6px;
		font-size: 12.5px;
		border: 1px solid var(--ps-line);
		border-radius: 999px;
		background: #FFFFFF;
	}
	.tjl-ps-tabs.elementor-widget-tp-tabs-tours .plus-tab-header::after { display: none; }
	.tjl-ps-tabs.elementor-widget-tp-tabs-tours .plus-tab-header.active {
		border-color: var(--ps-gold);
		background: #FFF9EC;
	}
	.tjl-ps-tabs.elementor-widget-tp-tabs-tours .tjl-ps-ico { width: 22px; height: 22px; }
	.tjl-ps-tabs.elementor-widget-tp-tabs-tours .tjl-ps-ico svg { width: 15px; height: 15px; }
	.tjl-ps-tabs.elementor-widget-tp-tabs-tours .tjl-ps-has-short > .tjl-ps-full { display: none; }
	.tjl-ps-tabs.elementor-widget-tp-tabs-tours .tjl-ps-has-short > .tjl-ps-short { display: inline; }
	.tjl-ps-tabs.elementor-widget-tp-tabs-tours .plus-tab-content { height: 268px; padding: 16px 16px 20px; font-size: 14px; }
}
