/* ----- ESTILIZAÇÃO DA PÁGINA DE DETALHES ----- */

/* Wrapper Principal */
.detail-page-main {
	padding-top: 100px;
	padding-bottom: 80px;
	background-color: #f6f8f6;
	min-height: 85vh;
}

.detail-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
	color: #5f6f6a;
	font-size: 0.92rem;
}

.detail-breadcrumb__link {
	color: var(--dark-green);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.detail-breadcrumb__link:hover {
	color: var(--light-green);
}

.detail-breadcrumb__separator {
	color: #9ca3af;
}

.detail-breadcrumb__current {
	color: #263238;
	font-weight: 600;
}

/* Grid de Layout de Detalhes */
.detail-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 992px) {
	.detail-grid {
		grid-template-columns: 1.6fr 1fr;
	}
}

/* Coluna da Esquerda: Imagens e Descrição */
.detail__media {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.detail__hero-media {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.detail__main-image-wrapper {
	width: 100%;
	height: 300px;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	background-color: #ddd;
	cursor: pointer;
	position: relative;
}

.detail__main-image-wrapper--wide {
	height: clamp(280px, 39vw, 520px);
	border-radius: 8px;
	box-shadow: none;
}

@media (min-width: 768px) {
	.detail__main-image-wrapper {
		height: 420px;
	}

	.detail__main-image-wrapper--wide {
		height: clamp(280px, 39vw, 520px);
	}
}

@media (max-width: 640px) {
	.detail-breadcrumb {
		font-size: 0.86rem;
		margin-bottom: 0.85rem;
	}

	.detail__main-image-wrapper--wide {
		height: 235px;
	}

	.detail__info-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.detail__info-button {
		width: 100%;
		min-width: 0;
	}

	.detail__hosting-section {
		padding: 1.15rem 0 0;
	}

	.detail__hosting-summary {
		grid-template-columns: 1fr;
	}

}

.detail__main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease, opacity 0.15s ease-in-out !important;
}

.detail__main-image-wrapper:hover .detail__main-image {
	transform: scale(1.02);
}

/* Galeria de Thumbnails */
.detail__gallery {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 8px;
}

.detail__thumb-btn {
	padding: 0;
	border: 3px solid transparent;
	background: none;
	border-radius: 8px;
	overflow: hidden;
	width: 80px;
	height: 60px;
	flex-shrink: 0;
	cursor: pointer;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
	.detail__thumb-btn {
		width: 100px;
		height: 75px;
	}
}

.detail__thumb-btn:hover {
	border: 1px solid var(--dark-green);
}

.detail__thumb-btn.is-active {
	border-color: var(--light-green);
}

.detail__thumb-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Informações de Texto */
.detail__info-content {
	background-color: transparent;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	margin-top: 1.5rem;
}

.detail__info-content--hosting {
	margin-top: 0;
}

.detail__info-eyebrow {
	color: var(--dark-green);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.2;
	margin-bottom: 0.8rem;
	text-transform: uppercase;
}

.detail__title {
	color: var(--black);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 1.5rem;
}

.detail__info-content--hosting .detail__title {
	font-size: clamp(2rem, 4.2vw, 2.85rem);
	font-weight: 600;
	line-height: 1.08;
	margin-bottom: 0.65rem;
}

.detail__info-location {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: #47554f;
	font-size: 0.92rem;
	line-height: 1.35;
	margin-bottom: 1.6rem;
}

.detail__info-location .detail__contact-icon {
	width: 16px;
	height: 16px;
	color: #5f6f6a;
}

.detail__section-title {
	font-size: 1.25rem;
	color: var(--black);
	font-weight: 600;
	margin-bottom: 1rem;
	position: relative;
	padding-bottom: 8px;
}

.detail__description-text {
	color: #4b5563;
	font-size: 1.05rem;
	line-height: 1.7;
}

.detail__info-content--hosting .detail__description-text {
	line-height: 1.72;
	max-width: 46rem;
}

.detail__info-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 1.6rem;
}

.detail__info-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-width: 220px;
	min-height: 42px;
	padding: 0.68rem 1rem;
	border-radius: 6px;
	font-size: 0.94rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.detail__info-button .detail__contact-icon {
	color: currentColor;
}

.detail__info-button--primary {
	background: #1f6f43;
	color: #ffffff;
	border-color: #1f6f43;
	box-shadow: 0 8px 18px -14px rgba(31, 111, 67, 0.8);
}

.detail__info-button--primary:hover {
	background: var(--dark-green);
	transform: translateY(-1px);
}

.detail__info-button--secondary {
	background: rgba(255, 255, 255, 0.74);
	color: #10201a;
	border-color: #d8ddd6;
	box-shadow: 0 2px 6px rgba(15, 17, 18, 0.05);
}

.detail__info-button--secondary:hover {
	background: #ffffff;
	border-color: #c8d4cd;
	transform: translateY(-1px);
}

.detail__hosting-section {
	background: transparent;
	border-top: 1px solid #d8e4de;
	border-radius: 0;
	padding: 1.5rem 0 0;
	box-shadow: none;
}

.detail__hosting-header {
	display: grid;
	gap: 0.35rem;
	margin-bottom: 1.35rem;
}

.detail__hosting-eyebrow {
	color: var(--dark-green);
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.detail__hosting-title {
	color: var(--black);
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.25;
}

.detail__hosting-intro {
	color: #52615c;
	font-size: 0.98rem;
	line-height: 1.55;
	max-width: 42rem;
}

.detail__hosting-summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin-bottom: 1.35rem;
}

.detail__hosting-summary-item {
	min-height: 84px;
	background: rgba(255, 255, 255, 0.66);
	border: 1px solid #dce8e2;
	border-radius: 8px;
	padding: 0.95rem 1rem;
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.detail__hosting-summary-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: #e7f3ec;
	color: var(--dark-green);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.detail__hosting-summary-icon svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.detail__hosting-summary-label {
	display: block;
	color: #6b7773;
	font-size: 0.76rem;
	font-weight: 600;
	text-transform: uppercase;
	line-height: 1.25;
}

.detail__hosting-summary-value {
	display: block;
	color: #17211e;
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.25;
}

.detail__hosting-feature-group {
	border-top: 1px solid #dfe8e3;
	padding-top: 1.15rem;
	margin-top: 0.25rem;
}

.detail__hosting-subtitle {
	color: #1f2937;
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.85rem;
}

.detail__hosting-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.detail__hosting-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	min-height: 36px;
	padding: 0.42rem 0.7rem 0.42rem 0.48rem;
	border-radius: 8px;
	background: rgba(232, 245, 238, 0.82);
	color: #075f45;
	border: 1px solid #b9dfcd;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
}

.detail__hosting-chip-icon {
	width: 24px;
	height: 24px;
	border-radius: 7px;
	background: #ffffff;
	color: var(--dark-green);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.detail__hosting-chip-icon svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.detail__hosting-note {
	margin-top: 1.35rem;
	padding: 0.95rem 1rem;
	background: rgba(255, 255, 255, 0.58);
	border: 1px solid #dfe8e3;
	border-left: 3px solid var(--light-green);
	border-radius: 8px;
	color: #374151;
}

.detail__hosting-note-label {
	display: block;
	color: var(--dark-green);
	font-size: 0.76rem;
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 0.35rem;
}

.detail__hosting-note p {
	margin: 0;
	line-height: 1.55;
}

/* Coluna da Direita: Sidebar com Programação e Contatos */
.detail__sidebar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-self: start;
}

@media (min-width: 992px) {
	.detail__sidebar {
		position: sticky;
		top: 104px;
	}
}

.detail__card {
	background-color: rgba(255, 255, 255, 0.78);
	border-radius: 8px;
	padding: 1.4rem;
	box-shadow: none;
	border: 1px solid #dfe8e3;
}

.detail__card-title {
	font-size: 1.08rem;
	color: var(--black);
	font-weight: 600;
	margin-bottom: 1.15rem;
	border-bottom: 1px solid #e3ebe7;
	padding-bottom: 0.75rem;
}

.detail__contact-card {
	background-color: rgba(255, 255, 255, 0.86);
	padding: 1.25rem;
}

.detail__contact-title {
	color: var(--black);
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.detail__contact-list {
	display: flex;
	flex-direction: column;
	gap: 0.82rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.detail__contact-row {
	display: flex;
	align-items: center;
	gap: 0.78rem;
	color: #20302b;
	font-size: 0.94rem;
	line-height: 1.35;
}

.detail__contact-row a {
	color: inherit;
	text-decoration: none;
}

.detail__contact-row a:hover {
	color: var(--dark-green);
}

.detail__contact-icon {
	width: 18px;
	height: 18px;
	color: var(--dark-green);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.detail__contact-icon svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.detail__contact-divider {
	height: 1px;
	background: #d8ddd6;
	margin: 1.25rem 0 1.05rem;
}

.detail__contact-price {
	color: #53615c;
	font-size: 0.92rem;
	line-height: 1.5;
	margin: 0 0 1rem;
}

.detail__contact-price strong {
	color: var(--black);
	font-weight: 600;
}

.detail__contact-actions {
	display: flex;
	flex-direction: column;
	gap: 0.72rem;
}

.detail__contact-reserve,
.detail__contact-map-link {
	min-height: 2.85rem;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	font-size: 0.94rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.detail__contact-reserve {
	background: #1f6f43;
	color: #ffffff;
	border: 1px solid #1f6f43;
}

.detail__contact-reserve:hover {
	background: var(--dark-green);
	transform: translateY(-1px);
}

.detail__contact-reserve .detail__contact-icon {
	color: currentColor;
}

.detail__contact-map-link {
	background: rgba(255, 255, 255, 0.72);
	color: #17211e;
	border: 1px solid #d8ddd6;
	box-shadow: 0 2px 6px rgba(15, 17, 18, 0.05);
}

.detail__contact-map-link:hover {
	background: #ffffff;
	border-color: #c8d4cd;
	transform: translateY(-1px);
}

.detail__map-card {
	background-color: rgba(255, 255, 255, 0.86);
	border: 1px solid #dfe5dd;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: none;
}

.detail__map-frame,
.detail__map-placeholder {
	width: 100%;
	height: 170px;
	border: 0;
	display: block;
	background: #efefe8;
}

.detail__map-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #626b66;
	font-size: 0.86rem;
}

.detail__map-caption {
	color: #626b66;
	font-size: 0.82rem;
	line-height: 1.35;
	margin: 0;
	padding: 0.82rem 1rem;
	background: rgba(255, 255, 255, 0.78);
}

.detail__meta-list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.detail__meta-item {
	display: flex;
	align-items: flex-start;
	gap: 0.78rem;
}

.detail__meta-icon {
	width: 34px;
	height: 34px;
	padding: 8px;
	border-radius: 8px;
	background: #e7f3ec;
	fill: var(--dark-green);
	flex-shrink: 0;
	margin-top: 0;
}

.detail__meta-label {
	font-size: 0.85rem;
	color: #6b7280;
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 2px;
}

.detail__meta-value {
	color: #1f2937;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
}

.detail__map-iframe {
	width: 100%;
	height: 220px;
	border: 0;
	border-radius: 8px !important;
	margin-top: 0.8rem;
	display: block;
	box-shadow: none;
}

/* Botões de Ação / Contato */
.detail__ctas {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	margin-top: 0.85rem;
}

.detail__cta-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 2.9rem;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.detail__cta-btn--ticket {
	background-color: var(--dark-green);
	color: #ffffff;
}

.detail__cta-btn--ticket:hover {
	background-color: var(--light-green);
	transform: translateY(-1px);
}

.detail__cta-btn--whatsapp {
	background-color: #e9f8ef;
	color: #087a44;
	border-color: #bae8cd;
	box-shadow: none;
}

.detail__cta-btn--whatsapp:hover {
	background-color: #dff3e8;
	transform: translateY(-1px);
}

.detail__cta-btn--social {
	background-color: #ffffff;
	color: #1f2937;
	border-color: #d8e1dc;
}

.detail__cta-btn--social:hover {
	background-color: #f3f7f5;
	transform: translateY(-1px);
}

.detail__cta-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

@media (max-width: 640px) {
	.detail__hosting-summary {
		grid-template-columns: 1fr;
	}

	.detail__card {
		padding: 1.2rem;
	}
}

/* Statuses (Loading / Error) */
.detail-loading-status, .detail-error-status {
	grid-column: 1 / -1;
	text-align: center;
	padding: 4rem 2rem;
	background-color: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	color: #4b5563;
	font-size: 1.125rem;
}

.detail-error-status h3 {
	color: #d30000;
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.detail-error-status .btn-home {
	display: inline-flex;
	margin-top: 1.5rem;
	background-color: var(--light-green);
	color: #fff;
	padding: 10px 24px;
	border-radius: 15px;
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.2s;
}

.detail-error-status .btn-home:hover {
	background-color: var(--dark-green);
}

/* ==========================================================================
   ESTILIZAÇÃO DO LIGHTBOX MODAL (VISUALIZAÇÃO DE IMAGENS)
   ========================================================================== */
.lightbox-dialog {
	border: none;
	background: transparent;
	padding: 0;
	margin: 0;
	max-width: 100vw;
	max-height: 100vh;
	width: 100%;
	height: 100%;
	display: none;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
}

.lightbox-dialog[open] {
	display: flex;
}

/* Backdrop com desfoque e escurecimento gradual */
.lightbox-dialog::backdrop {
	background-color: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: backdrop-filter 0.3s ease;
}

/* Área externa da imagem para fechar ao clicar */
.lightbox-dialog__backdrop-closer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	cursor: zoom-out;
}

.lightbox-dialog__container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 2rem;
	box-sizing: border-box;
	z-index: 2;
	pointer-events: none;
}

.lightbox-dialog__close,
.lightbox-dialog__arrow,
.lightbox-dialog__content {
	pointer-events: auto;
}

/* Botão de Fechar */
.lightbox-dialog__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 10;
}

.lightbox-dialog__close:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: #fff;
	transform: scale(1.08);
}

.lightbox-dialog__close svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Setas de Navegação Lateral */
.lightbox-dialog__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 5;
}

.lightbox-dialog__arrow:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: #fff;
	transform: translateY(-50%) scale(1.08);
}

.lightbox-dialog__arrow--prev {
	left: 1.5rem;
}

.lightbox-dialog__arrow--next {
	right: 1.5rem;
}

.lightbox-dialog__arrow svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Ocultar botões quando necessário */
.lightbox-dialog__arrow.is-hidden {
	display: none !important;
}

/* Container de Conteúdo */
.lightbox-dialog__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 80%;
	max-height: 85%;
	position: relative;
}

/* Imagem com animação suave de entrada */
.lightbox-dialog__image {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
	user-select: none;
	-webkit-user-drag: none;
	animation: lightboxZoomIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
	transition: opacity 0.2s ease-in-out;
}

/* Legenda / Paginação */
.lightbox-dialog__caption {
	color: rgba(255, 255, 255, 0.9);
	margin-top: 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	text-align: center;
	background: rgba(0, 0, 0, 0.65);
	padding: 8px 18px;
	border-radius: 20px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	user-select: none;
}

@keyframes lightboxZoomIn {
	from {
		opacity: 0;
		transform: scale(0.92);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Ajustes responsivos para telas menores */
@media (max-width: 768px) {
	.lightbox-dialog__container {
		padding: 1rem;
	}
	.lightbox-dialog__content {
		max-width: 95%;
	}
	.lightbox-dialog__arrow {
		width: 46px;
		height: 46px;
		background: rgba(0, 0, 0, 0.75);
	}
	.lightbox-dialog__arrow svg {
		width: 16px;
		height: 16px;
	}
	.lightbox-dialog__arrow--prev {
		left: 0.5rem;
	}
	.lightbox-dialog__arrow--next {
		right: 0.5rem;
	}
	.lightbox-dialog__close {
		top: 1rem;
		right: 1rem;
		width: 42px;
		height: 42px;
		background: rgba(0, 0, 0, 0.75);
	}
}
