/* TriPiratas — página da viagem */
.tp-trip { min-height: 100vh; }

.tp-trip__layout { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.tp-trip__grid {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 48px;
	align-items: start;
}
/* Sem isto, o conteúdo impede a coluna de encolher em telas estreitas. */
.tp-trip__main, .tp-trip__aside { min-width: 0; }

/* ---------- Banner (as fotos abrem a página em largura total) ---------- */
.tp-trip__banner { background: var(--tp-dark); position: relative; }
.tp-trip__banner-stage {
	position: relative;
	height: clamp(360px, 62vh, 620px);
	overflow: hidden;
	line-height: 0;
}
.tp-trip__banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-trip__banner .tp-img--placeholder { display: flex; align-items: center; justify-content: center; }
.tp-trip__banner-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 8, 4, 0.45) 0%, transparent 28%, transparent 62%, rgba(15, 8, 4, 0.55) 100%);
	pointer-events: none;
}
.tp-trip__media-badges { position: absolute; top: 20px; left: 24px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }

/* Seções empilhadas: cada bloco de conteúdo em seu próprio box branco. */
.tp-trip__sections { display: flex; flex-direction: column; gap: 24px; }
.tp-box {
	background: var(--tp-surface);
	border-radius: 16px;
	box-shadow: var(--tp-shadow-card);
	padding: 28px 32px;
}
.tp-box__title {
	font-family: var(--tp-font-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--tp-dark-2);
	margin: 0;
	flex: 1;
	min-width: 0;
}

/* Accordion: só a descrição fica aberta; as demais seções abrem ao clicar. */
.tp-box--fold { padding: 0; }
.tp-box__summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 28px;
	cursor: pointer;
	list-style: none;
	transition: background 0.18s;
	/* Acompanha o raio do box: sem isto o fundo do hover vaza nos cantos. */
	border-radius: 16px;
}
/* Aberto, o corpo continua embaixo — os cantos de baixo voltam a ser retos. */
.tp-box--fold[open] .tp-box__summary { border-radius: 16px 16px 0 0; }
.tp-box__summary::-webkit-details-marker { display: none; }
.tp-box__summary:hover { background: var(--tp-bg); }
.tp-box__summary:hover .tp-box__title { color: var(--tp-gold-text); }
.tp-box__icon {
	font-size: 26px;
	line-height: 1;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--tp-bg);
	border: 1px solid var(--tp-border-cream);
	border-radius: 50%;
}
.tp-box--fold[open] .tp-box__icon { background: rgba(200, 146, 10, 0.12); border-color: var(--tp-gold); }
.tp-box__chevron {
	color: var(--tp-gold-text);
	font-size: 18px;
	line-height: 1;
	flex-shrink: 0;
	transition: transform 0.22s ease;
}
.tp-box--fold[open] .tp-box__chevron { transform: rotate(180deg); }
.tp-box__body {
	padding: 4px 28px 28px;
	border-top: 1px solid var(--tp-border-cream);
	margin-top: -1px;
	padding-top: 24px;
}

.tp-trip__title { font-family: var(--tp-font-display); font-size: 30px; font-weight: 700; color: var(--tp-dark-2); margin: 0 0 16px; }
.tp-trip__rating { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; font-size: 14px; color: var(--tp-muted); }
.tp-trip__desc { font-size: 15px; color: var(--tp-ink); line-height: 1.8; margin-bottom: 24px; }
.tp-trip__desc p { margin-bottom: 1em; }
.tp-trip__subheading { font-family: var(--tp-font-display); font-size: 16px; color: var(--tp-dark-2); margin-bottom: 14px; }
.tp-trip__muted { color: var(--tp-muted); font-size: 14px; }
.tp-trip__highlights {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.tp-trip__highlights li { font-size: 14px; color: var(--tp-ink); display: flex; align-items: flex-start; gap: 8px; }
.tp-trip__highlights .diamond { color: var(--tp-gold-text); font-size: 16px; flex-shrink: 0; }

/* Roteiro (timeline) */
.tp-itinerary { position: relative; }
.tp-itinerary::before {
	content: '';
	position: absolute;
	left: 16px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--tp-border-cream);
}
.tp-itinerary__stop { display: flex; gap: 20px; margin-bottom: 20px; position: relative; }
.tp-itinerary__node {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--tp-gold-btn);
	color: var(--tp-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--tp-font-display);
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
	z-index: 1;
}
.tp-itinerary__body { padding-top: 6px; }
.tp-itinerary__body .time { font-family: var(--tp-font-display); font-size: 14px; font-weight: 700; color: var(--tp-gold-text); margin-bottom: 2px; }
.tp-itinerary__body .desc { font-size: 14px; color: var(--tp-ink); }

/* Inclui / não inclui */
.tp-includes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.tp-includes h3 { font-family: var(--tp-font-display); font-size: 16px; color: var(--tp-dark-2); margin-bottom: 16px; }
.tp-includes__row {
	font-size: 14px;
	color: var(--tp-ink);
	padding: 8px 0;
	border-bottom: 1px solid var(--tp-track);
	display: flex;
	gap: 10px;
}
.tp-includes__row .yes { color: var(--tp-green-dark); }
.tp-includes__row .no { color: var(--tp-red); }

/* Informações */
.tp-info-row {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid var(--tp-track);
	gap: 16px;
}
.tp-info-row .k { font-size: 14px; color: var(--tp-muted); font-weight: 600; }
.tp-info-row .v { font-size: 14px; color: var(--tp-dark-2); font-weight: 700; text-align: right; max-width: 60%; }

/* Dúvidas (accordion nativo com <details>) */
.tp-faq { display: flex; flex-direction: column; gap: 10px; }
.tp-faq__item {
	border: 1px solid var(--tp-border-cream);
	border-radius: 10px;
	background: var(--tp-bg);
	overflow: hidden;
}
.tp-faq__item[open] { border-color: var(--tp-gold); background: var(--tp-surface); }
.tp-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	padding: 16px 18px;
	font-family: var(--tp-font-display);
	font-size: 15px;
	font-weight: 700;
	color: var(--tp-dark-2);
	line-height: 1.4;
	list-style: none;
}
.tp-faq__q::-webkit-details-marker { display: none; }
.tp-faq__q:hover { color: var(--tp-gold-text); }
.tp-faq__chevron { color: var(--tp-gold-text); font-size: 16px; flex-shrink: 0; transition: transform 0.2s; }
.tp-faq__item[open] .tp-faq__chevron { transform: rotate(180deg); }
.tp-faq__a { padding: 0 18px 16px; font-size: 15px; color: var(--tp-ink); line-height: 1.8; }
.tp-faq__a p { margin: 0 0 1em; }
.tp-faq__a p:last-child { margin-bottom: 0; }
.tp-faq__cta {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--tp-border-cream);
	text-align: center;
}
.tp-faq__cta p { font-size: 15px; color: var(--tp-muted); margin: 0 0 14px; }

.tp-trip__related { margin-top: 60px; }
.tp-grid-cards--related { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }

/* ---------- Booking card ---------- */
.tp-trip__aside { position: sticky; top: calc(var(--tp-header-h) + 36px); }
.tp-booking {
	background: var(--tp-surface);
	border-radius: 16px;
	box-shadow: 0 4px 32px rgba(28, 15, 5, 0.14);
	overflow: hidden;
}
.tp-booking__head { background: var(--tp-dark-2); padding: 20px 24px; }
.tp-booking__head .eyebrow {
	font-family: var(--tp-font-display);
	font-size: 12px;
	color: var(--tp-gold);
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.tp-booking__body { padding: 20px 24px; }

.tp-booking__countdown { background: var(--tp-bg); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
/* O contador ocupa toda a largura do box: cada unidade vira um cartão próprio. */
.tp-booking__countdown .tp-countdown {
	display: flex;
	width: 100%;
	gap: 6px;
	min-height: 0;
}
.tp-booking__countdown .tp-countdown__box {
	flex: 1 1 0;
	min-width: 0;
	background: var(--tp-surface);
	border: 1px solid var(--tp-border-cream);
	border-radius: 8px;
	padding: 10px 2px 8px;
}
.tp-booking__countdown .tp-countdown__num { font-size: 30px; letter-spacing: -1px; }
.tp-booking__countdown .tp-countdown__label { font-size: 11px; letter-spacing: 0.3px; }
.tp-booking__countdown .tp-countdown__sep { display: none; }
.tp-booking__countdown .tp-countdown__expired { display: block; text-align: center; width: 100%; }
.tp-booking__countdown .label {
	font-size: 12px;
	color: var(--tp-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
}
.tp-booking__spots { margin-bottom: 16px; }
.tp-booking__spots .row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.tp-booking__spots .left { font-size: 12px; color: var(--tp-muted); font-weight: 700; }
.tp-booking__spots .left.is-low { color: var(--tp-red); }
.tp-booking__spots .pct { font-size: 12px; color: var(--tp-muted-3); }
.tp-booking__spots .tp-progress { height: 6px; border-radius: 4px; }

/* Tabela de valores por grupo de idade e opções de hospedagem (só leitura:
 * a escolha acontece nos steps do checkout). */
/* Pontos de embarque: lista somente leitura — escolher é etapa do checkout. */
.tp-booking__boardings { margin-bottom: 16px; }
.tp-booking__boardings .label {
	font-size: 12px;
	font-weight: 800;
	color: var(--tp-gold-text);
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 10px;
}
.tp-booking__boarding {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--tp-track);
}
.tp-booking__boarding:last-of-type { border-bottom: none; }
.tp-booking__boarding .local {
	font-size: 13px;
	font-weight: 700;
	color: var(--tp-dark-2);
	min-width: 0;
}
.tp-booking__boarding .local small {
	display: block;
	font-weight: 400;
	font-size: 11px;
	color: var(--tp-muted-3);
}
.tp-booking__boarding .time {
	font-family: var(--tp-font-display);
	font-size: 13px;
	font-weight: 700;
	color: var(--tp-muted);
	white-space: nowrap;
	flex-shrink: 0;
	text-align: right;
}
.tp-booking__boarding .time small {
	display: block;
	font-family: var(--tp-font-body);
	font-weight: 400;
	font-size: 11px;
	color: var(--tp-muted-3);
}
.tp-booking__note {
	font-size: 12px;
	color: var(--tp-muted);
	line-height: 1.5;
	margin: 12px 0 0;
	text-align: center;
}

.tp-booking__facts { margin-bottom: 6px; }
.tp-booking__facts .fact { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; font-size: 13px; color: var(--tp-ink); line-height: 1.5; }

.tp-booking__add {
	width: 100%;
	padding: 15px;
	background: var(--tp-gold-btn);
	color: var(--tp-surface);
	border: none;
	border-radius: 10px;
	font-family: var(--tp-font-display);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.3s;
	letter-spacing: 1px;
	margin-bottom: 10px;
}
.tp-booking__add:hover { background: var(--tp-gold-btn-hover); }
.tp-booking__closed { text-align: center; padding: 12px 0; }
.tp-booking__closed .flag { font-size: 44px; margin-bottom: 10px; }
.tp-booking__closed h3 { font-family: var(--tp-font-display); font-size: 20px; color: var(--tp-dark-2); margin-bottom: 8px; }
.tp-booking__closed p { font-size: 13px; color: var(--tp-muted); margin-bottom: 18px; line-height: 1.6; }

@media (max-width: 1024px) {
	.tp-trip__grid { grid-template-columns: 1fr; }
	.tp-trip__aside { position: static; }
	.tp-trip__banner-stage { height: clamp(260px, 46vh, 380px); }
}

/* ---------- Galeria da viagem ----------
 * É mais um box empilhado da coluna, logo depois de "Informações da Viagem":
 * herda fundo, raio e sombra de .tp-box, e o espaçamento vem do gap das seções.
 */
.tp-gallery__title { margin-bottom: 18px; }
.tp-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
	gap: 14px;
}
.tp-gallery__item {
	position: relative;
	display: block;
	padding: 0;
	border: none;
	background: none;
	cursor: zoom-in;
	border-radius: 10px;
	overflow: hidden;
	line-height: 0;
}
.tp-gallery__img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.tp-gallery__item:hover .tp-gallery__img { transform: scale(1.06); }
.tp-gallery__caption {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 22px 12px 10px;
	background: linear-gradient(180deg, transparent, rgba(15, 8, 4, 0.85));
	color: var(--tp-cream);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
}
.tp-gallery__caption .nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-gallery__caption .lupa { flex-shrink: 0; opacity: 0; transition: opacity 0.2s; }
.tp-gallery__item:hover .lupa, .tp-gallery__item:focus-visible .lupa { opacity: 1; }
.tp-gallery__item:focus-visible { outline: 2px solid var(--tp-gold); outline-offset: 2px; }

/* ---------- Lightbox ---------- */
.tp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(15, 8, 4, 0.94);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
}
.tp-lightbox__figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.tp-lightbox__figure img {
	max-width: 100%;
	max-height: 78vh;
	display: block;
	margin: 0 auto;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.tp-lightbox__figure figcaption {
	margin-top: 16px;
	font-family: var(--tp-font-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--tp-cream);
	letter-spacing: 0.5px;
}
.tp-lightbox__close,
.tp-lightbox__nav {
	background: rgba(245, 237, 216, 0.1);
	border: 1.5px solid rgba(245, 237, 216, 0.3);
	color: var(--tp-cream);
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
	flex-shrink: 0;
	transition: background 0.2s, border-color 0.2s;
}
.tp-lightbox__close:hover,
.tp-lightbox__nav:hover { background: rgba(245, 237, 216, 0.2); border-color: var(--tp-gold); }
.tp-lightbox__nav { width: 54px; height: 54px; font-size: 30px; }
.tp-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 46px;
	height: 46px;
	font-size: 28px;
}

@media (max-width: 780px) {
	.tp-gallery__img { height: 130px; }
	.tp-lightbox { padding: 12px; gap: 6px; }
	.tp-lightbox__nav { width: 42px; height: 42px; font-size: 24px; }
	.tp-lightbox__figure img { max-height: 66vh; }
}
