/**
 * Archive & Taxonomy Tours Grid Styles
 * Complete implementation without partial fragments.
 *
 * @author     David Apaza
 * @package    Csw_Kbookt
 */
/* Contenedor principal con ancho máximo definido */
/* El contenedor wrapper es el ancla */
.csw-filters-sidebar{
	margin-bottom: 20px;
}
.csw-search-wrapper {
	position: relative;
	max-width: 280px;
	margin:10px auto 0 auto;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	opacity: 1;
	display: flex;
}
.csw-search-wrapper .field-icon{
	padding-left: 10px;
}
.csw-search-wrapper .field-group{
	width: 100%;
}
.csw-search-wrapper .field-group,
.csw-search-wrapper .field-input{
	border-radius: 30px;
}
.csw-search-wrapper .cswicon-search{
	color: var(--csw-text-muted);
}
.filter-group label{
	display: flex;
	width: 100%;
	flex-direction: column;
	justify-content: center;
	align-items: start;
	margin-bottom: 5px;
}
/* Resalta el elemento seleccionado */
.csw-result-item.csw-active {
	background-color: #f0f0f0 !important;
	border-left: 3px solid var(--csw-accent);
	cursor: pointer;
}
/* El dropdown se posiciona justo debajo del input */
#csw-dropdown-results {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	width: 350px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
	z-index: 9999;
	padding: 10px;
	max-height: 400px;
	overflow-y: auto;
	box-sizing: border-box;
	display: none;
}

/* Ítem individual con control de texto */
.csw-result-item {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	border-radius: 12px;
	transition: background 0.2s ease;
	cursor: pointer;
	white-space: normal;
	word-wrap: break-word;
	gap: 10px;
}
.csw-result-item img{
	border-radius: 6px;
}
/* Títulos de grupo */
.csw-group-title {
	font-weight: 700;
	font-size: 0.85rem;
	color: #888;
	padding: 10px 15px;
	text-transform: uppercase;
}

/* Ajustes de contenido */
.csw-item-content {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	text-align: left;
	font-size: 13px;
}

.csw-item-title {
	font-weight: 700;
	color: var(--csw-text-dark);
	white-space: normal;
}

.csw-item-snippet {
	color: #666;
	margin: 4px 0 0 0;
	line-height: 1.3;
	white-space: normal; /* Permite wrap */
}

/* Responsivo para móviles */
@media (max-width: 400px) {
	#csw-dropdown-results {
		width: 90vw;
		left: 18px;
		transform: none;
		position: fixed;
	}
}
/* =========================================================================
   1. CONTENEDOR E INYECCIÓN DE TIPOGRAFÍAS BASE
   ========================================================================= */
   .csw-taxonomy-archive-wrapper {
   	padding: 60px 0;
   }

   .csw-taxonomy-archive-wrapper .archive-header {
   	margin-bottom: 45px;
   	text-align: left;
   }

   .csw-taxonomy-archive-wrapper .archive-title {
   	font-size: 2.4rem;
   	font-weight: 800;
   	color: var(--csw-text-main);
   	margin: 0 0 10px 0;
   }

   .csw-taxonomy-archive-wrapper .archive-description {
   	font-size: 1rem;
   	color: #64748b;
   	line-height: 1.6;
   	max-width: 800px;
   }

   .csw-catalog-wrapper{
   	display: flex;
   	flex-wrap: wrap;
   }

/* =========================================================================
   2. DISEÑO CON SUB-CATEGORÍAS (Imagen-Lista-Tours-de-Categorias-Con-Subcategorias.jpg)
   ========================================================================= */
   .csw-tour-slider{
   	margin-bottom: 20px;
   }
   .csw-tours-list-grid {
   	display: flex;
   	flex-wrap: wrap;
   	margin-left: -15px;
   	margin-right: -15px;
   }

   .csw-list-card-col {
   	padding-left: 15px;
   	padding-right: 15px;
   	margin-bottom: 30px;
   }

   .csw-list-card {
   	background: #ffffff;
   	border: 1px solid #e2e8f0;
   	border-radius: 16px;
   	overflow: hidden;
   	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
   	display: flex;
   	flex-direction: column;
   	height: 100%;
   	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
   }

   .csw-list-card:hover {
   	transform: translateY(-5px);
   	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
   }

   .csw-list-card .list-card-img {
   	width: 100%;
   	height: 170px;
   	overflow: hidden;
   }

   .csw-list-card .list-card-img img {
   	width: 100%;
   	height: 100%;
   	object-fit: cover;
   }

   .csw-list-card .list-card-body {
   	padding: 24px;
   	display: flex;
   	flex-direction: column;
   	flex-grow: 1;
   }

   .csw-list-card .list-card-title {
   	font-size: 1.4rem;
   	font-weight: 800;
   	color: var(--csw-primary);
   	margin: 0 0 20px 0;
   }

   .csw-list-card .list-card-items {
   	list-style: none;
   	padding: 0;
   	margin: 0 0 25px 0;
   	flex-grow: 1;
   }

   .csw-list-card .list-card-items li {
   	font-size: 0.92rem;
   	line-height: 1.5;
   	margin-bottom: 14px;
   	display: flex;
   	align-items: flex-start;
   	color: #475569;
   }

   .csw-list-card .list-card-items li .bullet-arrow {
   	color: #94a3b8;
   	font-size: 0.75rem;
   	margin-right: 10px;
   	margin-top: 3px;
   }

   .csw-list-card .list-card-items li a {
   	color: #475569;
   	text-decoration: none;
   	font-weight: 500;
   	transition: color 0.2s ease;
   }

   .csw-list-card .list-card-items li a:hover {
   	color: var(--csw-primary);
   }

   .csw-list-card .list-card-footer {
   	margin-top: auto;
   }

   .csw-list-card .btn-list-view-all {
   	display: inline-block;
   	background: #1c4463; /* Azul Oscuro de Botón según captura */
   	color: #ffffff !important;
   	padding: 10px 22px;
   	font-size: 0.88rem;
   	font-weight: 700;
   	border-radius: 6px;
   	text-decoration: none;
   	transition: background-color 0.2s ease;
   }

   .csw-list-card .btn-list-view-all:hover {
   	background: #0f2d44;
   }


/* =========================================================================
   3. DISEÑO SIN SUB-CATEGORÍAS (Imagen-Lista-Tours-de-Categorias-Sin-Subcategoria.jpg)
   ========================================================================= */
   .csw-tours-grid {
   	display: flex;
   	flex-wrap: wrap;
   	margin-left: -15px;
   	margin-right: -15px;
   	justify-content: center;
   }

   .csw-tour-card-item {
   	padding-left: 10px;
   	padding-right: 10px;
   }

   .csw-tour-card {
   	background: #ffffff;
   	border: 1px solid #e2e8f0;
   	border-radius: 16px;
   	overflow: hidden;
   	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
   	display: flex;
   	flex-direction: column;
   	height: 100%;
   	transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.7s ease;
   }
   .owl-item .csw-tour-card{
   	text-align: left;
   }
/* 2. El cambio a ROW (Cuando el padre es columna de 12) */
.csw-catalog-full-row .csw-tour-card {
	flex-direction: row;
}

/* Aplicación de tus porcentajes 30/50/20 */
.csw-catalog-full-row .card-header,
.csw-catalog-full-row .card-footer {
	flex: 0 0 30%;
	max-width: 30%;
}

.csw-catalog-full-row .card-body {
	flex: 0 0 40%;
	max-width: 40%;
}
.csw-tour-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.csw-catalog-full-row .csw-tour-card .footer-actions-row,
.csw-catalog-full-row .csw-tour-card .footer-meta-row {
	flex-direction: column;
}
.csw-catalog-full-row .csw-tour-card .card-body{
	padding: 20px;
}
.csw-catalog-full-row .tour-reviews-box{
	display: none;
}
.csw-catalog-full-row .card-footer{
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Encabezado Multimedia e Indicadores Dinámicos */
.csw-tour-card .card-header-img {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	max-height: 230px;
}
.csw-catalog-full-row .csw-tour-card .card-header-img {
	max-height: 260px;
}
.csw-tour-card .card-header-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.csw-tour-card .tour-badges-container {
	position: absolute;
	top: 15px;
	left: 15px;
	right: 15px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	z-index: 3;
}

.csw-tour-card .tour-badges-container span {
	padding: 6px 12px;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 20px;
	text-transform: uppercase;
	color: #ffffff;
	backdrop-filter: blur(4px);
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Colores Identitarios de Badges según captura */
.csw-tour-card .badge-bestseller {
	background: rgba(255, 79, 0, 0.8);
	position: absolute;
	transform: rotate(-45deg);
	top: 12px;
	left: -24px;
	width: 100px;
	text-align: center;
	font-size: 0.68rem !important;
}
.csw-tour-card .badge-discount { background: rgba(200, 7, 135, 0.8); margin-left: auto; }
.csw-tour-card .badge-savings { background: rgba(17,56,87,0.8); }

/* Contenedor Semitransparente de Duración */
.csw-tour-card .card-duration-overlay {
	position: absolute;
	bottom: 15px;
	left: 15px;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(4px);
	color: #ffffff;
	padding: 6px 12px;
	font-size: 0.8rem;
	font-weight: 600;
	border-radius: 6px;
	display: flex;
	align-items: center;
	gap: 6px;
	z-index: 2;
}

/* Cuerpo de Contenidos Informativos */
.csw-tour-card .card-body {
	padding: 15px 20px 10px 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.csw-tour-card .tour-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--csw-text-main);
	margin-bottom: 10px;
	position: relative;
}

.csw-tour-card .tour-title a {
	color: var(--csw-text-main);
	text-decoration: none;
	transition: color 0.2s ease;
}

.csw-tour-card .tour-title a:hover {
	color: var(--csw-primary);
}
.csw-current-post {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 12px;
	padding: 5px;
	border-radius: 5px;
}
.csw-tour-card .tour-excerpt {
	font-size: 0.9rem;
	color: #64748b;
	margin-bottom: 5px;
}

.csw-tour-card .tour-meta-badges {
	margin-top: auto;
	display: flex;
	gap: 8px;
	padding-top: 15px;
	justify-content: space-between;
	border-top: 1px dashed #e2e8f0;
}

.csw-tour-card .meta-badge-lang,
.csw-tour-card .meta-badge-promo {
	font-size: 0.82rem;
	font-weight: 600;
	color: #475569;
	display: flex;
	align-items: center;
	gap: 6px;
}
.csw-tour-card .flags-placeholder{
	display: flex;
	gap: 10px;
}

.csw-tour-card .meta-badge-promo {
	color: #ff6b35; /* Resaltado naranja promocional */
}

/* Bloque de Precios y Conversión del Footer */
.csw-cart-price,
.csw-tour-card .card-footer {
	padding: 20px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
}
.csw-cart-price {
	margin-bottom: 20px;
}

.csw-tour-card .footer-meta-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 20px;
}

.csw-tour-card .tour-price-box {
	display: flex;
	flex-direction: column;
}
.csw-tour-card .price-old-tag,
.csw-tour-card .price-from {
	font-size: 0.75rem;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.csw-tour-card .price-wrapper {
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.csw-tour-card .price-amount {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--csw-text-main);
	line-height: 1;
}

.csw-tour-card .price-currency-unit {
	font-size: 0.9rem;
	font-weight: 600;
	color: #64748b;
}

.csw-tour-card .price-old {
	font-size: 0.88rem;
	color: #94a3b8;
	text-decoration: line-through;
	margin-top: 2px;
}

.csw-tour-card .tour-reviews-box {
	text-align: right;
}

.csw-tour-card .glsr-stars-fallback {
	color: #ffb100;
	font-size: 0.85rem;
}

.csw-tour-card .fallback-label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	color: #64748b;
	margin-top: 2px;
}

/* Botonera de Conversión de Alta Fidelidad Visual */
.csw-tour-card .footer-actions-row {
	display: flex;
	gap: 12px;
}

.csw-tour-card .btn-book {
	flex-grow: 2;
}

.csw-tour-card .btn-book:hover {
	background-color: #740472;
}

.csw-tour-card .btn-whatsapp {
	flex-grow: 1;
}
@media (max-width: 767px){
	.csw-catalog-full-row .csw-tour-card{
		flex-direction: column;
	}
	.csw-catalog-full-row .card-header,
	.csw-catalog-full-row .card-body,
	.csw-catalog-full-row .card-footer{
		flex: 1;
		max-width: 100%;
	}
	.csw-catalog-full-row .tour-meta-badges{
		flex-direction: row;
	}
	.csw-tour-card .footer-meta-row{
		align-items: flex-start;
	}
	.csw-tour-card-item{
		padding: 0;
	}
}