/**
 * Elementor Tab Post – Frontend styles
 * Prefix: etp-
 */

/* -------------------------------------------------------------------------
   Wrapper
   ------------------------------------------------------------------------- */
.etp-wrapper {
	position: relative;
	width: 100%;
}

/* -------------------------------------------------------------------------
   Tabs
   ------------------------------------------------------------------------- */
.etp-tabs {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 32px;
	padding: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	/* Prevent page-level horizontal overflow */
	max-width: 100%;
}

.etp-tabs::-webkit-scrollbar {
	height: 4px;
}

.etp-tabs::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 2px;
}

.etp-tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 0;
	background: transparent;
	color: #ccc;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
	white-space: nowrap;
	line-height: 1.4;
}

.etp-tab:hover {
	color: #fff;
}

.etp-tab:focus-visible {
	outline: 2px solid #c9a96e;
	outline-offset: 2px;
}

.etp-tab.etp-tab-active {
	color: #c9a96e;
	border-color: transparent;
}

/* Active indicator (underline) */
.etp-has-indicator .etp-tab.etp-tab-active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 100%;
	height: 2px;
	background-color: #c9a96e;
	border-radius: 1px;
}

/* -------------------------------------------------------------------------
   Grid
   ------------------------------------------------------------------------- */
.etp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 24px;
	row-gap: 24px;
	width: 100%;
}

/* -------------------------------------------------------------------------
   Card
   ------------------------------------------------------------------------- */
.etp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #1a1a1a;
	border-radius: 0;
	overflow: hidden;
	transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
}

.etp-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	outline: none;
}

.etp-card-link:focus-visible {
	outline: 2px solid #c9a96e;
	outline-offset: 2px;
}

.etp-card {
	--etp-hover-ty: -4px;
	--etp-hover-scale: 1;
}

.etp-card:hover {
	transform: translateY(var(--etp-hover-ty)) scale(var(--etp-hover-scale));
}

/* -------------------------------------------------------------------------
   Image
   ------------------------------------------------------------------------- */
.etp-image {
	position: relative;
	width: 100%;
	height: 280px;
	overflow: hidden;
	flex-shrink: 0;
}

.etp-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.4s ease;
}

.etp-image-overlay {
	position: absolute;
	inset: 0;
	background-color: #000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

/* Hover effects */
.etp-hover-zoom-in .etp-card:hover .etp-image img {
	transform: scale(1.08);
}

.etp-hover-zoom-out .etp-card:hover .etp-image img {
	transform: scale(0.95);
}

.etp-hover-move-up .etp-card:hover .etp-image img {
	transform: translateY(-8px);
}

.etp-hover-move-down .etp-card:hover .etp-image img {
	transform: translateY(8px);
}

/* -------------------------------------------------------------------------
   Content
   ------------------------------------------------------------------------- */
.etp-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 20px 20px 24px;
}

/* Meta row: category + year */
.etp-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.etp-category {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #c9a96e;
	line-height: 1.3;
}

.etp-year {
	font-size: 12px;
	color: #999;
	letter-spacing: 0.04em;
	line-height: 1.3;
	flex-shrink: 0;
}

/* Title */
.etp-title {
	margin: 0 0 10px;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	transition: color 0.3s ease;
}

.etp-card:hover .etp-title {
	color: #c9a96e;
}

/* Location */
.etp-location {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
	font-size: 13px;
	color: #aaa;
	line-height: 1.4;
}

.etp-location-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: inherit;
}

.etp-location-icon svg {
	width: 14px;
	height: 14px;
	display: block;
}

.etp-location-text {
	line-height: 1.4;
}

/* Description / Products */
.etp-description {
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #bbb;
}

.etp-products-label {
	font-weight: 600;
	color: #c9a96e;
	margin-right: 4px;
}

.etp-description-text {
	color: inherit;
}

/* -------------------------------------------------------------------------
   Load More
   ------------------------------------------------------------------------- */
.etp-load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.etp-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 12px 32px;
	border: 1px solid transparent;
	border-radius: 0;
	background-color: #c9a96e;
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
	line-height: 1.4;
}

.etp-load-more:hover {
	background-color: #b8944f;
	color: #fff;
}

.etp-load-more:focus-visible {
	outline: 2px solid #c9a96e;
	outline-offset: 2px;
}

.etp-load-more:disabled,
.etp-load-more.is-loading {
	opacity: 0.7;
	cursor: not-allowed;
	pointer-events: none;
}

/* -------------------------------------------------------------------------
   Loader
   ------------------------------------------------------------------------- */
.etp-loader-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 0;
	min-height: 80px;
}

.etp-loader-wrap[hidden] {
	display: none !important;
}

.etp-loader {
	width: 36px;
	height: 36px;
	border: 3px solid rgba(201, 169, 110, 0.25);
	border-top-color: #c9a96e;
	border-radius: 50%;
	animation: etp-spin 0.7s linear infinite;
}

@keyframes etp-spin {
	to {
		transform: rotate(360deg);
	}
}

/* -------------------------------------------------------------------------
   Empty state
   ------------------------------------------------------------------------- */
.etp-empty {
	grid-column: 1 / -1;
	padding: 48px 24px;
	text-align: center;
	color: #999;
	font-size: 15px;
}

/* -------------------------------------------------------------------------
   Loading state on grid
   ------------------------------------------------------------------------- */
.etp-wrapper.is-loading .etp-grid {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.etp-wrapper.is-loading .etp-loader-wrap {
	display: flex !important;
}

/* -------------------------------------------------------------------------
   Responsive defaults (Elementor responsive controls override these)
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.etp-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.etp-grid {
		grid-template-columns: 1fr;
	}

	.etp-image {
		height: 220px;
	}

	.etp-tabs {
		justify-content: flex-start;
		margin-bottom: 24px;
	}
}
