/* TriPiratas — home (hero, filtros, seções) */

/* ---------- Hero carousel ---------- */
/*
 * Os slides ficam empilhados na MESMA célula de grid, não em position:absolute.
 * A diferença importa: empilhados por grid eles continuam sobrepostos para o
 * crossfade, mas ainda têm altura própria — então o hero cresce com o texto em
 * vez de recortá-lo. Com altura fixa e miolo absoluto, um título de duas linhas
 * ou um contador alto vazavam para os dois lados (o conteúdo é centralizado) e
 * o overflow:hidden comia eyebrow e contador no mobile.
 *
 * A altura vira PISO (min-height), não teto. A célula acompanha o slide mais
 * alto, então trocar de slide também não dá solavanco de layout.
 */
.tp-hero {
	display: grid;
	min-height: clamp(500px, 72vh, 760px);
	position: relative;
	overflow: hidden;
	background: var(--tp-dark);
}
.tp-hero__slide {
	grid-area: 1 / 1;
	position: relative;
	display: flex;
	align-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.32s ease;
	background-color: var(--ph-bg);
	background-image: repeating-linear-gradient(
		135deg,
		color-mix(in srgb, var(--ph-bg) 33%, transparent) 0px,
		color-mix(in srgb, var(--ph-bg) 33%, transparent) 20px,
		color-mix(in srgb, var(--ph-stripe) 9%, transparent) 20px,
		color-mix(in srgb, var(--ph-stripe) 9%, transparent) 40px
	);
}
.tp-hero__slide.is-active { opacity: 1; pointer-events: auto; }
.tp-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-hero__dots-overlay {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 1px 1px, rgba(200, 146, 10, 0.08) 1px, transparent 0);
	background-size: 24px 24px;
	pointer-events: none;
}
.tp-hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(12, 6, 2, 0.96) 0%, rgba(12, 6, 2, 0.80) 45%, rgba(12, 6, 2, 0.20) 75%, transparent 100%);
}
/* Em fluxo dentro do slide: é este bloco que dá altura ao hero. */
.tp-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(32px, 6vw, 96px);
	max-width: 780px;
}
.tp-hero__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.tp-hero__eyebrow .rule { width: 36px; height: 1.5px; background: var(--tp-gold); }
.tp-hero__eyebrow span:not(.rule) {
	font-size: 11px;
	font-weight: 800;
	color: var(--tp-gold);
	letter-spacing: 4px;
	text-transform: uppercase;
}
.tp-hero__badges { display: flex; gap: 8px; margin-bottom: 16px; }
.tp-hero__title {
	font-family: var(--tp-font-display);
	font-size: clamp(36px, 6vw, 72px);
	font-weight: 900;
	color: var(--tp-cream);
	margin: 0 0 16px;
	line-height: 0.98;
	letter-spacing: -1.5px;
	text-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}
.tp-hero__desc {
	font-size: clamp(14px, 1.6vw, 17px);
	color: rgba(245, 237, 216, 0.72);
	margin: 0 0 28px;
	line-height: 1.7;
	max-width: 520px;
}
.tp-hero__cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 28px; }
.tp-hero__cta { font-size: 13px; padding: clamp(12px, 1.4vw, 16px) clamp(24px, 3vw, 40px); letter-spacing: 1.5px; border-radius: 0; box-shadow: 0 6px 24px rgba(200, 146, 10, 0.45); }
.tp-hero__countdown-row { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.tp-hero__countdown-row .label {
	font-size: 11px;
	color: var(--tp-cream-dim-2);
	text-transform: uppercase;
	letter-spacing: 3px;
	line-height: 30px;
	white-space: nowrap;
}
.tp-hero__nav {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	align-items: center;
	z-index: 5;
}
.tp-hero__counter {
	font-family: var(--tp-font-display);
	font-size: 11px;
	color: var(--tp-cream-dim-2);
	letter-spacing: 2px;
	margin-right: 8px;
}
.tp-hero__dot {
	width: 6px;
	height: 5px;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: all 0.35s ease;
	border-radius: 3px;
}
.tp-hero__dot.is-active { width: 36px; background: var(--tp-gold); }
.tp-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(15, 8, 4, 0.5);
	border: 1px solid rgba(200, 146, 10, 0.25);
	color: var(--tp-cream);
	width: 44px;
	height: 44px;
	font-size: 22px;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	z-index: 5;
}
.tp-hero__arrow:hover { background: rgba(200, 146, 10, 0.25); }
.tp-hero__arrow.is-prev { left: 24px; }
.tp-hero__arrow.is-next { right: 24px; }

/* ---------- Filter bar sticky ---------- */
.tp-filter-bar {
	background: var(--tp-dark-2);
	border-bottom: 1px solid rgba(200, 146, 10, 0.12);
	padding: 18px 40px;
	position: sticky;
	top: var(--tp-header-h);
	z-index: 90;
}
.tp-filter-bar__inner {
	max-width: var(--tp-container);
	margin: 0 auto;
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}
.tp-filter-bar__label {
	font-size: 11px;
	font-weight: 800;
	/* A barra de filtros tem fundo escuro — aqui vale o dourado claro. */
	color: var(--tp-gold-bright);
	letter-spacing: 3.5px;
	text-transform: uppercase;
	white-space: nowrap;
}
.tp-filter-bar input[type="text"] {
	padding: 9px 14px;
	border: 1px solid rgba(200, 146, 10, 0.25);
	background: rgba(255, 255, 255, 0.06);
	color: var(--tp-cream);
	font-size: 13px;
	outline: none;
	min-width: 150px;
	border-radius: 0;
}
.tp-filter-bar input[type="text"]::placeholder { color: var(--tp-cream-dim); }
.tp-filter-bar select {
	padding: 9px 14px;
	border: 1px solid rgba(200, 146, 10, 0.25);
	background: var(--tp-dark-2);
	color: var(--tp-cream);
	font-size: 13px;
	outline: none;
	cursor: pointer;
	border-radius: 0;
}
#tp-filter-clear {
	background: none;
	border: 1px solid rgba(200, 146, 10, 0.3);
	color: var(--tp-gold);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	padding: 8px 14px;
	cursor: pointer;
}

/* ---------- Próximas Aventuras ---------- */
.tp-upcoming .tp-container { position: relative; z-index: 1; }
.tp-upcoming__featured { margin-bottom: 28px; }
.tp-upcoming__more { text-align: center; margin-top: 52px; }

/* ---------- Featured card ---------- */
.tp-featured-card {
	display: grid;
	grid-template-columns: 1fr 400px;
	overflow: hidden;
	cursor: pointer;
	box-shadow: var(--tp-shadow-featured);
	transition: all 0.4s ease;
}
.tp-featured-card:hover { box-shadow: var(--tp-shadow-featured-hover); transform: translateY(-6px); }
.tp-featured-card__media {
	position: relative;
	overflow: hidden;
	min-height: 380px;
	background-color: color-mix(in srgb, var(--ph-bg) 38%, transparent);
	background-image: repeating-linear-gradient(
		45deg,
		color-mix(in srgb, var(--ph-bg) 33%, transparent),
		color-mix(in srgb, var(--ph-bg) 33%, transparent) 20px,
		color-mix(in srgb, var(--ph-stripe) 9%, transparent) 20px,
		color-mix(in srgb, var(--ph-stripe) 9%, transparent) 40px
	);
}
.tp-featured-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-featured-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(28, 15, 5, 0.15) 0%, transparent 40%, rgba(28, 15, 5, 0.6) 100%);
}
.tp-featured-card__ghost-title {
	position: absolute;
	bottom: -24px;
	left: -8px;
	font-family: var(--tp-font-display);
	font-weight: 900;
	font-size: 90px;
	color: rgba(255, 255, 255, 0.05);
	line-height: 1;
	pointer-events: none;
	user-select: none;
	white-space: nowrap;
}
.tp-featured-card__urgent {
	position: absolute;
	top: 20px;
	left: 20px;
	background: var(--tp-red);
	color: var(--tp-surface);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 6px 14px;
}
.tp-featured-card__content {
	background: var(--tp-dark);
	padding: 44px 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
	background-image: radial-gradient(circle at 1px 1px, rgba(200, 146, 10, 0.1) 1px, transparent 0);
	background-size: 20px 20px;
}
.tp-featured-card__badges { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tp-featured-card__title {
	font-family: var(--tp-font-display);
	font-size: 30px;
	font-weight: 900;
	color: var(--tp-cream);
	line-height: 1.05;
	margin: 0 0 16px;
	letter-spacing: -0.5px;
}
.tp-featured-card__desc {
	font-size: 14px;
	color: var(--tp-cream-dim);
	line-height: 1.8;
	margin: 0 0 20px;
}
.tp-featured-card__facts {
	font-size: 12px;
	color: var(--tp-cream-dim);
	margin-bottom: 24px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.tp-featured-card__rule { height: 1px; background: rgba(200, 146, 10, 0.2); margin: 28px 0 24px; }
.tp-featured-card__price { margin-bottom: 20px; }
.tp-featured-card__cta { display: block; width: 100%; }

@media (max-width: 900px) {
	.tp-featured-card { grid-template-columns: 1fr; }
	.tp-featured-card__media { min-height: 240px; }
	.tp-featured-card__ghost-title { font-size: 56px; }
}

/* ---------- Viagens por Mês ---------- */
.tp-months__ghost {
	position: absolute;
	top: -40px;
	left: -20px;
	font-family: var(--tp-font-display);
	font-weight: 900;
	font-size: clamp(120px, 20vw, 240px);
	color: rgba(28, 15, 5, 0.04);
	line-height: 1;
	user-select: none;
	pointer-events: none;
	text-transform: uppercase;
	white-space: nowrap;
}
.tp-months .tp-container { position: relative; z-index: 1; }
/* No desktop as abas quebram em linha; a rolagem fica só para o mobile. */
.tp-months__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 52px;
	border-bottom: 1px solid rgba(28, 15, 5, 0.1);
}
.tp-months__tab {
	background: none;
	border: none;
	cursor: pointer;
	padding: 14px 24px;
	font-family: var(--tp-font-display);
	font-size: 13px;
	font-weight: 700;
	color: var(--tp-muted);
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	transition: all 0.2s;
	white-space: nowrap;
}
.tp-months__tab:hover { color: var(--tp-dark-2); }
.tp-months__tab.is-active { color: var(--tp-dark-2); border-bottom-color: var(--tp-gold); }
.tp-months__tab .count { font-family: var(--tp-font-body); font-size: 12px; color: var(--tp-muted-2); }

/* ---------- Em Breve ---------- */
.tp-coming-soon__ghost {
	position: absolute;
	top: -40px;
	right: -20px;
	font-family: var(--tp-font-display);
	font-weight: 900;
	font-size: clamp(100px, 16vw, 200px);
	color: rgba(200, 146, 10, 0.05);
	line-height: 1;
	user-select: none;
	pointer-events: none;
	text-transform: uppercase;
	white-space: nowrap;
}
.tp-coming-soon .tp-container { position: relative; z-index: 1; }

/* ---------- Why Us ---------- */
.tp-why-us { background: var(--tp-dark); border-top: 1px solid rgba(200, 146, 10, 0.1); }
.tp-why-us__header { padding: 72px 40px 0; text-align: center; }
.tp-why-us__grid { display: grid; grid-template-columns: 1fr 1fr; }
.tp-why-us__item { padding: 56px 48px; position: relative; overflow: hidden; }
.tp-why-us__item:nth-child(odd) { border-right: 1px solid rgba(200, 146, 10, 0.08); }
.tp-why-us__item:nth-child(-n+2) { border-bottom: 1px solid rgba(200, 146, 10, 0.08); }
/* Símbolo pirata no lugar do número: medalhão dourado, igual ao Código da Tripulação. */
.tp-why-us__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	margin-bottom: 20px;
	font-size: 38px;
	line-height: 1;
	border-radius: 50%;
	background: rgba(200, 146, 10, 0.1);
	position: relative;
	transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.tp-why-us__item:hover .tp-why-us__icon {
	background: rgba(200, 146, 10, 0.18);
	transform: translateY(-3px);
}
.tp-why-us__item h3 {
	font-family: var(--tp-font-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--tp-cream);
	margin: 0 0 14px;
	line-height: 1.2;
	position: relative;
}
.tp-why-us__item p {
	font-size: 15px;
	color: var(--tp-cream-dim);
	line-height: 1.8;
	margin: 0;
	max-width: 340px;
	position: relative;
}
@media (max-width: 780px) {
	.tp-why-us__grid { grid-template-columns: 1fr; }
	.tp-why-us__item:nth-child(odd) { border-right: none; }
	.tp-why-us__item { border-bottom: 1px solid rgba(200, 146, 10, 0.08); padding: 32px 20px; }
	.tp-why-us__header { padding: 48px 20px 0; }
	.tp-why-us__item:last-child { border-bottom: none; }
	/*
	 * Em coluna única, texto e ícone à esquerda ficavam desencontrados do
	 * cabeçalho da seção, que é centralizado.
	 */
	.tp-why-us__item { text-align: center; }
	.tp-why-us__icon,
	.tp-why-us__item img,
	.tp-why-us__item svg { margin-left: auto; margin-right: auto; }
}


@media (max-width: 900px) {
	.tp-filter-bar { padding: 14px 20px; }
	.tp-hero__arrow { display: none; }
}

/*
 * Mobile: as abas de mês passam a rolar na horizontal, com barra fina e
 * discreta (a barra global de 8px fica grande demais aqui) e snap por aba.
 */
@media (max-width: 768px) {
	/*
	 * A barra de filtros (busca + 3 selects) não cabe no mobile; a navegação
	 * por mês fica pelas abas abaixo. Os campos seguem no DOM, vazios, então
	 * filters.js não aplica nenhum filtro.
	 */
	.tp-filter-bar { display: none; }

	.tp-months__tabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: rgba(200, 146, 10, 0.6) transparent;
		padding-bottom: 2px;
	}
	.tp-months__tabs::-webkit-scrollbar { height: 3px; }
	.tp-months__tabs::-webkit-scrollbar-track { background: transparent; }
	.tp-months__tabs::-webkit-scrollbar-thumb {
		background: rgba(200, 146, 10, 0.6);
		border-radius: 3px;
	}
	.tp-months__tab { scroll-snap-align: start; padding: 13px 18px; }
}

/* Conteúdo do card em destaque colado nas bordas no celular. */
@media (max-width: 768px) {
	.tp-featured-card__content { padding: 20px; }
}
