/* =============================================================
   Gender Tab Navigation — Frontend Styles
   Plugin: Gender Tab Navigation for Elementor v1.0.0
   ============================================================= */

/* ---------------------------------------------------------------
   Wrapper
--------------------------------------------------------------- */
.gtp-tab-wrapper {
	width: 100%;
	z-index: 100;
}

.gtp-tab-wrapper.gtp-sticky {
	position: sticky;
	top: 0;
}

/* ---------------------------------------------------------------
   Nav row
--------------------------------------------------------------- */
.gtp-tab-nav {
	display: flex;
	align-items: stretch;
	position: relative;
	background-color: #ffffff;
	border-bottom: 1px solid #e0e0e0;
	margin: 0;
	padding: 0;
	list-style: none;
	/* prevent layout shift while bar calculates */
	overflow: visible;
}

/* ---------------------------------------------------------------
   Tab items
--------------------------------------------------------------- */
.gtp-tab-item {
	flex: 1;                    /* equal-width by default */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none !important;
	color: #888888;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 14px 16px;
	cursor: pointer;
	border: none;
	background: transparent;
	transition: color 0.2s ease;
	position: relative;
	white-space: nowrap;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

/* Accessibility: keyboard focus ring */
.gtp-tab-item:focus-visible {
	outline: 2px solid #000;
	outline-offset: -2px;
}

.gtp-tab-item:hover {
	color: #333333;
	text-decoration: none !important;
}

.gtp-tab-item.gtp-active {
	color: #000000;
}

/* Icon inside tab */
.gtp-tab-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.gtp-tab-icon svg,
.gtp-tab-icon i {
	width: 1em;
	height: 1em;
}

.gtp-tab-label {
	position: relative;
}

/* ---------------------------------------------------------------
   Highlight / indicator bar
--------------------------------------------------------------- */
.gtp-highlight-bar {
	position: absolute;
	bottom: -1px;           /* sits on top of the nav border-bottom */
	left: 0;
	height: 3px;
	width: 0;               /* set by JS */
	background-color: #000000;
	border-radius: 2px;
	pointer-events: none;
	will-change: left, width;
	/* transition is injected by JS so Elementor speed control works */
	transition: left 300ms cubic-bezier(0.4, 0, 0.2, 1),
	            width 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gtp-highlight-bar.gtp-bar-top {
	bottom: auto;
	top: -1px;
}

/* ---------------------------------------------------------------
   Loading states
--------------------------------------------------------------- */

/* Dim tabs while AJAX fetches */
.gtp-tab-wrapper.gtp-loading .gtp-tab-item {
	pointer-events: none;
	opacity: 0.6;
	cursor: wait;
}

/* Top progress bar (thin stripe across viewport) */
.gtp-page-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	z-index: 99999;
	overflow: hidden;
	background: transparent;
}

.gtp-page-loader::after {
	content: '';
	display: block;
	height: 100%;
	width: 30%;
	background: #000;
	border-radius: 0 2px 2px 0;
	animation: gtp-slide-loader 1s ease-in-out infinite;
}

@keyframes gtp-slide-loader {
	0%   { transform: translateX(-100%); }
	60%  { transform: translateX(250%); }
	100% { transform: translateX(400%); }
}

/* ---------------------------------------------------------------
   Content transition (AJAX mode)
--------------------------------------------------------------- */
.gtp-content-fading {
	opacity: 0;
	transition: opacity 0.18s ease;
}

.gtp-content-visible {
	opacity: 1;
	transition: opacity 0.25s ease;
}

/* ---------------------------------------------------------------
   Responsive — very narrow screens
--------------------------------------------------------------- */
@media (max-width: 360px) {
	.gtp-tab-item {
		font-size: 11px;
		padding: 12px 8px;
		letter-spacing: 0.04em;
	}
}

/* ---------------------------------------------------------------
   Elementor editor – hide loading overlay in preview
--------------------------------------------------------------- */
.elementor-editor-active .gtp-page-loader {
	display: none !important;
}
