/* Slider contínuo horizontal */
.c49-gallery-continuous-slider {
	position: relative;
	overflow: hidden;
	height: 500px;
	margin-bottom: 0px;
	background-color: transparent;
	border-radius: 0px;
}

.c49-gallery-track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.c49-gallery-slide {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 3px;
	width: 100%;
	height: 100%;
	flex-shrink: 0;
	/* padding: 8px; */
}

/* Ajustes para slides com menos de 5 painéis */
.c49-gallery-slide.slide-4-panels {
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
}

.c49-gallery-slide.slide-3-panels {
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
}

.c49-gallery-slide.slide-2-panels {
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr;
}

.c49-gallery-slide.slide-1-panel {
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
}

/* Layout para slides que não são o primeiro (8 fotos pequenas em grid 4x2) */
.c49-gallery-slide:not([data-slide="0"]) {
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
}

.c49-gallery-panel {
	position: relative;
	overflow: hidden;
	border-radius: 0px;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background-color: #212121;
}

.c49-gallery-panel:hover {
	transform: scale(1.02);
	box-shadow: 0 8px 25px rgba(0,0,0,0.3);
	z-index: 10;
}

/* Painel principal (topo-esquerda) - ocupa 2 linhas */
.c49-gallery-panel.main-panel {
	grid-row: 1 / 3;
	grid-column: 1;
}

/* Painel topo-centro */
.c49-gallery-panel.top-center {
	grid-row: 1;
	grid-column: 2;
}

/* Painel topo-direita */
.c49-gallery-panel.top-right {
	grid-row: 1;
	grid-column: 3;
}

/* Painel centro-direita */
.c49-gallery-panel.center-right {
	grid-row: 2;
	grid-column: 2;
}

/* Painel inferior-direita */
.c49-gallery-panel.bottom-right {
	grid-row: 2;
	grid-column: 3;
}

/* Painel inferior-centro */
.c49-gallery-panel.bottom-center {
	grid-row: 2;
	grid-column: 2;
}

/* Posicionamento dos painéis pequenos em slides não-primeiros (grid 4x2) */
.c49-gallery-slide:not([data-slide="0"]) .small-panel-1 {
	grid-row: 1;
	grid-column: 1;
}

.c49-gallery-slide:not([data-slide="0"]) .small-panel-2 {
	grid-row: 1;
	grid-column: 2;
}

.c49-gallery-slide:not([data-slide="0"]) .small-panel-3 {
	grid-row: 1;
	grid-column: 3;
}

.c49-gallery-slide:not([data-slide="0"]) .small-panel-4 {
	grid-row: 1;
	grid-column: 4;
}

.c49-gallery-slide:not([data-slide="0"]) .small-panel-5 {
	grid-row: 2;
	grid-column: 1;
}

.c49-gallery-slide:not([data-slide="0"]) .small-panel-6 {
	grid-row: 2;
	grid-column: 2;
}

.c49-gallery-slide:not([data-slide="0"]) .small-panel-7 {
	grid-row: 2;
	grid-column: 3;
}

.c49-gallery-slide:not([data-slide="0"]) .small-panel-8 {
	grid-row: 2;
	grid-column: 4;
}

.c49-gallery-panel .panel-image {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.3s ease, opacity 0.5s ease, background-image 0.5s ease;
}

.c49-gallery-panel:hover .panel-image {
	transform: scale(1.05);
}

.c49-gallery-panel .panel-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(0,0,0,0.7));
	color: white;
	padding: 15px 10px 10px;
	font-size: 14px;
	font-weight: 500;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.c49-gallery-panel:hover .panel-overlay {
	opacity: 1;
}

/* Animações de transição */
.c49-gallery-panel .panel-image.transitioning {
	opacity: 0.7;
	transform: scale(0.98);
}

.c49-gallery-panel .panel-image.loading {
	opacity: 0.5;
	background-color: #f0f0f0;
}

/* Animação de fade para mudança de imagem */
@keyframes fadeInImage {
	from {
		opacity: 0;
		transform: scale(1.1);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.c49-gallery-panel .panel-image.fade-in {
	animation: fadeInImage 0.6s ease-out;
}

/* Animação de slide para navegação - Suavizada */
@keyframes slideInFromRight {
	from {
		opacity: 0;
		transform: translateX(30px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
}

@keyframes slideInFromLeft {
	from {
		opacity: 0;
		transform: translateX(-30px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
}

.c49-gallery-panel .panel-image.slide-in-right {
	animation: slideInFromRight 0.5s ease-out;
}

.c49-gallery-panel .panel-image.slide-in-left {
	animation: slideInFromLeft 0.5s ease-out;
}

/* Indicadores de navegação para slider contínuo */
.c49-gallery-continuous-slider .gallery-indicators {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 15px;
	padding: 10px;
	background-color: #212121;
	border-radius: 0px;
}

.c49-gallery-continuous-slider .gallery-indicators .indicator {
	width: 60px;
	height: 45px;
	background-size: cover;
	background-position: center;
	border-radius: 4px;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.3s ease, transform 0.3s ease;
	border: 2px solid transparent;
}

.c49-gallery-continuous-slider .gallery-indicators .indicator:hover,
.c49-gallery-continuous-slider .gallery-indicators .indicator.active {
	opacity: 1;
	transform: scale(1.1);
	border-color: #006dcc;
}

/* Controles de navegação para slider contínuo */
.c49-gallery-continuous-slider .gallery-controls {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.6);
	color: white;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: all 0.3s ease;
	z-index: 20;
	opacity: 0;
	visibility: hidden;
}

.c49-gallery-continuous-slider .gallery-controls:hover {
	background: rgba(0,0,0,0.8);
}

/* Mostrar controles quando o mouse estiver sobre a galeria */
.c49-gallery-continuous-slider:hover .gallery-controls {
	opacity: 1;
	visibility: visible;
}

.c49-gallery-continuous-slider .gallery-controls.prev {
	left: 15px;
}

.c49-gallery-continuous-slider .gallery-controls.next {
	right: 15px;
}

.nav-tabs+.tab-content {
	padding: 0rem!important;
}

/* Responsividade para slider contínuo - Mobile */
@media (max-width: 768px) {
	.c49-gallery-continuous-slider {
		height: 300px;
		background-color: #000;
	}
	
	/* Layout mobile: 1 foto por vez, todas do mesmo tamanho */
	.c49-gallery-slide {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
		height: 100%;
		overflow: hidden;
	}
	
	/* Layout mobile: 1 foto por vez, todas do mesmo tamanho */
	.c49-gallery-slide {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
		height: 100%;
	}
	
	/* Todos os painéis em mobile ocupam o espaço completo */
	.c49-gallery-panel {
		width: 100%;
		height: 100%;
		grid-row: unset;
		grid-column: unset;
		position: absolute;
		top: 0;
		left: 0;
		opacity: 0;
		transition: opacity 0.5s ease;
		display: block;
	}
	
	/* Apenas o painel ativo é visível */
	.c49-gallery-panel.active {
		opacity: 1;
		z-index: 2;
	}
	
	/* Ocultar painéis não ativos */
	.c49-gallery-panel:not(.active) {
		opacity: 0;
		z-index: 1;
	}
	
	
	
	/* Ajustar altura das imagens para mobile */
	.c49-gallery-panel .panel-image {
		height: 100%;
		background-size: cover;
		background-position: center;
		transition: opacity 0.6s ease-in-out;
	}
	
	/* Transição suave para mudança de imagem */
	.c49-gallery-panel.transitioning .panel-image {
		opacity: 0.7;
	}
	
	/* Controles de navegação mobile */
	.c49-gallery-continuous-slider .gallery-controls {
		width: 50px;
		height: 50px;
		font-size: 24px;
		background: rgba(0,0,0,0.7);
		border: 2px solid #fff;
		opacity: 1;
		visibility: visible;
	}
	
	.c49-gallery-continuous-slider .gallery-controls.prev {
		left: 10px;
	}
	
	.c49-gallery-continuous-slider .gallery-controls.next {
		right: 10px;
	}
	
	/* Indicadores mobile - mais visíveis */
	.c49-gallery-continuous-slider .gallery-indicators {
		position: absolute;
		bottom: 10px;
		left: 50%;
		transform: translateX(-50%);
		background: rgba(0,0,0,0.7);
		padding: 8px 15px;
		border-radius: 20px;
		gap: 6px;
	}
	
	.c49-gallery-continuous-slider .gallery-indicators .indicator {
		width: 40px;
		height: 30px;
		border-radius: 3px;
	}
	
	.c49-gallery-continuous-slider .gallery-indicators .indicator.active {
		border-color: #fff;
		transform: scale(1.2);
	}
}
.c49-carousel-gallery .carousel-indicators li {
	max-width: 70px;
	width: 70px;
	height: 55px;
	background-position: center;
	background-size: cover;
	border-radius: 0;
    margin: 2px;
	background-color: #212121;    
}
.c49-carousel-gallery ol.carousel-indicators {
    overflow: hidden;
    bottom: -55px;
    background: #212121;
    width: 100%;
    margin: 0 auto;
	border-left: 2px solid #212121;
    border-right: 2px solid #212121;
}
.c49-carousel-gallery ol.carousel-indicators.olscroll {
	-webkit-justify-content: left;
	-ms-flex-pack: left;
	justify-content: left;
	margin: auto;
	background-color: #212121;
}
.c49-carousel-gallery .ol-control {
	position: absolute;
	bottom: -53px;
	height: 55px;
    z-index: 16;
    cursor: pointer;
    justify-content: center;
    display: flex;
    align-items: center;
}
.c49-carousel-gallery .ol-control i {
    font-size: 40px;
    color: #fff;
}
.c49-carousel-gallery .ol-control.ol-prev {
	left: 0;
	padding: 0 20px 0 10px;
	background: -moz-linear-gradient(left,  rgba(33,33,33,1) 0%, rgba(33,33,33,1) 40%, rgba(33,33,33,0) 90%, rgba(33,33,33,0) 100%);
	background: -webkit-linear-gradient(left,  rgba(33,33,33,1) 0%,rgba(33,33,33,1) 40%,rgba(33,33,33,0) 90%,rgba(33,33,33,0) 100%);
	background: linear-gradient(to right,  rgba(33,33,33,1) 0%,rgba(33,33,33,1) 40%,rgba(33,33,33,0) 90%,rgba(33,33,33,0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#212121', endColorstr='#00212121',GradientType=1 );
}
.c49-carousel-gallery .ol-control.ol-next {
    right: 0;
    padding: 0 10px 0 20px;
	background: -moz-linear-gradient(left,  rgba(33,33,33,0) 0%, rgba(33,33,33,0) 10%, rgba(33,33,33,1) 60%, rgba(33,33,33,1) 100%);
	background: -webkit-linear-gradient(left,  rgba(33,33,33,0) 0%,rgba(33,33,33,0) 10%,rgba(33,33,33,1) 60%,rgba(33,33,33,1) 100%);
	background: linear-gradient(to right,  rgba(33,33,33,0) 0%,rgba(33,33,33,0) 10%,rgba(33,33,33,1) 60%,rgba(33,33,33,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00212121', endColorstr='#212121',GradientType=1 );
}
.btn-tour {
	top: 155px!important;
    left: -17px!important;
    width: 25%!important;
}
.btn-tour {
    position: absolute;
    top: 20px;
    left: -35px;
    z-index: 10;
    background-color: #006dcc;
    display: block;
    border-radius: 0 4px 4px 0;
}
.btn-tour:before {
    height: 6px;
    width: 86%;
    background-color: rgba(0,0,0,.1);
    content: "";
    position: absolute;
    top: 100%;
    left: 16px;
    z-index: -10;
    display: block;
    border-radius: 0 0 4px 0;
}
.btn-tour:after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    left: 0px;
    top: 100%;
    border-left: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-top: 15px solid #000;
}

.btn-tour:hover .fa {
    opacity: 1;
}
.btn-tour a {
    color: #fff;
    font-style: italic;
    font-weight: 600;
    font-size: 17px;
    text-shadow: 1px 1px 2px rgba(0,0,0,.2);
    padding: 10px 20px;
    display: block;
}
.btn-tour .fa {
    opacity: .8;
    margin-right: 5px;
}
.c49-carousel-gallery .carousel-control-next, 
.c49-carousel-gallery .carousel-control-prev {
	top: 60px;
    bottom: 60px;
}
.c49-carousel-gallery .carousel-control-next-icon, 
.c49-carousel-gallery .carousel-control-prev-icon {
    width: 35px;
    height: 35px;
}
.c49-carousel-gallery:hover .carousel-control-next-icon, 
.c49-carousel-gallery:hover .carousel-control-prev-icon {
    opacity: 1;
}
.blueimp-gallery>.prev, .blueimp-gallery>.next {
	color: #fff!important;
}
span.carousel-control-next-icon {
    background-position: 11px;
}
.c49-carousel-gallery .gal-relative{
	position: relative;
	text-align: center;
}
.c49-carousel-gallery .legenda {
	position: absolute;
	background-color: #0000005c;
	color: #fff;
	z-index: 99999999;
	width: 100%;
	padding: 5px 0px;
	text-shadow: 1px 1px #000;
	bottom: 0px;
}
#videos-property-carousel, #videos-cond-carousel {
	margin: 0rem!important;
}
#videos-property .carousel-item, #videos-property-carousel, #videos-cond .carousel-item, #videos-cond-carousel {
	height: auto!important;
}
#videos-property .carousel-item, #videos-property-carousel, #videos-cond .carousel-item, #videos-cond-carousel {
	aspect-ratio: 16 / 9;
}
blockquote.tiktok-embed {
	margin: 0px!important;
}

/* Transições suaves para o slider contínuo */
.c49-gallery-panel {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Estilos para as abas da galeria */
.c49-gallery-tabs-container {
	margin-bottom: 20px;
}

.c49-gallery-tabs {
/*	border-bottom: 2px solid #e9ecef;*/
	margin-bottom: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	background-color: transparent!important;
	border-radius: 8px 8px 0 0;
	justify-content: center; /* Centralizar as abas */
}

.c49-gallery-tabs .nav-item {
	margin: 0;
}

.c49-gallery-tabs .nav-link {
	display: flex;
	align-items: center;
	justify-content: center; /* Centralizar conteúdo do link */
	gap: 8px;
	padding: 12px 20px;
	border: none;
	background: transparent;
	color: #6c757d;
	font-weight: 500;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.3s ease;
	border-radius: 0;
	position: relative;
	text-align: center; /* Centralizar texto */
}

.c49-gallery-tabs .nav-link {
	color: #666;
	background-color: #0000000d;
    border: 1px solid #cccccc3b;	
}

.c49-gallery-tabs .nav-link:hover {
	color: #006dcc;
	background-color: rgba(0, 109, 204, 0.1);
}

.c49-gallery-tabs .nav-link.active {
	color: $primary;
	background-color: $primary_inverse;
/*	border-bottom: 3px solid #006dcc;*/
	font-weight: 600;
}

.c49-gallery-tabs .nav-link i {
	font-size: 16px;
}

.c49-gallery-tab-content {
	background-color: #fff;
	border: 1px solid #e9ecef;
	border-top: none;
	border-radius: 0 0 8px 8px;
	min-height: 400px;
}

.c49-gallery-tab-content .tab-pane {
	display: none !important;
	padding: 0;
}

.c49-gallery-tab-content .tab-pane.active {
	display: block !important;
}

.blueimp-gallery {
	background: rgb(0 0 0 / 61%)!important;
}

.blueimp-gallery>.slides>.slide>.slide-content {
	border: 12px solid #fff;
    border-radius: 10px;
}

/* Responsividade para as abas */
@media (max-width: 768px) {
	.c49-gallery-tabs {
		flex-direction: row; /* Manter horizontal em mobile */
		border-radius: 0;
		justify-content: center; /* Centralizar abas em mobile */
	}
	
	.c49-gallery-tabs .nav-link {
		padding: 12px 16px; /* Aumentar padding para melhor toque */
		font-size: 0; /* Ocultar texto */
		justify-content: center; /* Centralizar ícone */
		min-width: 50px; /* Largura mínima para toque */
		gap: 0px;
		margin: 0 0; /* Espaçamento entre abas */
	}
	
	.c49-gallery-tabs .nav-link i {
		font-size: 18px; /* Tamanho do ícone em mobile */
		margin: 0; /* Remover margem do ícone */
	}
	
	.c49-gallery-tabs .nav-link.active {
		background-color: $primary_inverse;
		color: #primary;
		border: none;
	}
	
	.c49-gallery-tabs .nav-link:hover {
		background-color: rgba(0, 109, 204, 0.1);
		color: #006dcc;
	}
	
	.c49-gallery-tab-content {
		border-radius: 0;
		border-top: 1px solid #e9ecef;
		min-height: auto;
	}
}