/**
 * Ajustes del catálogo de tours (tour-grid de Turie) para GetYourTravel.
 *
 * Solo cubre lo que necesita la integración con WordPress: los formularios de
 * filtros, el slider de precio, los estados activos y el estado vacío.
 */

.gy-tour-grid-page .tp-breadcrumb-title {
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
}

.gy-tour-grid-page .tp-breadcrumb-overly::before {
	background: linear-gradient(180deg, rgba(3, 27, 55, 0.55) 0%, rgba(3, 27, 55, 0.42) 45%, rgba(3, 27, 55, 0.58) 100%);
}

.gy-tour-grid-page .tp-booking-location-list {
	max-height: 430px;
	overflow-y: auto;
}

.gy-tour-grid-page .tp-booking-location-inner ul {
	margin-bottom: 0;
	padding-left: 0;
}

.gy-tour-grid-page .tp-booking-location-list li {
	cursor: pointer;
}

.gy-tour-grid-page .tp-booking-location-list li.is-selected {
	background: #f6f6f6;
}

.gy-tour-grid-page .tp-booking-quantity-list {
	padding-left: 0;
	margin-bottom: 0;
}

.gy-tour-grid-page .tp-booking-quantity-wrap {
	left: auto;
	right: 0;
}

.gy-tour-grid-page .tp-booking-quantity .tp-input {
	padding-left: 42px;
	text-align: center;
}

.gy-tour-grid-page .tp-booking-quantity [role='button'] {
	user-select: none;
}

.gy-tour-grid-page .tp-tour-filter-wrap {
	margin-bottom: 10px;
}

.gy-tour-grid-page .tp-tour-filter-result {
	vertical-align: middle;
}

.gy-clear-filters {
	display: inline-block;
	margin-left: 14px;
	color: var(--tp-theme-1);
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gy-clear-filters:hover {
	color: var(--tp-common-black);
}

/* -------------------------------------------------------------------------
 * Filtros
 * ---------------------------------------------------------------------- */

.gy-tour-grid-page .tp-filter-sidebar {
	padding-bottom: 28px;
}

.gy-tour-grid-page .tp-filter-sidebar .tp-filter-item:last-of-type {
	margin-bottom: 10px;
}

.gy-tour-grid-page .gy-filter-count {
	color: var(--tp-grey-1);
	font-size: 13px;
	font-weight: 400;
}

.gy-tour-grid-page .gy-filter-actions {
	position: sticky;
	bottom: -1px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 26px -28px 0;
	padding: 18px 28px;
	border-top: 1px solid rgba(7, 21, 22, 0.1);
	background: #fff;
	box-shadow: 0 -14px 24px -22px rgba(7, 21, 22, 0.55);
}

.gy-tour-grid-page .gy-filter-actions .tp-btn {
	flex: 1 1 auto;
	justify-content: center;
	text-align: center;
}

.gy-tour-grid-page .gy-filter-reset {
	flex: 0 0 auto;
	color: var(--tp-grey-1);
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gy-tour-grid-page .gy-filter-reset:hover {
	color: var(--tp-theme-1);
}

.gy-tour-grid-page .tp-filter-search .tp-header-search-btn {
	color: var(--tp-common-black);
}

.gy-tour-grid-page .read-more-wrapper .toggle-btn {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tp-theme-1);
	font-size: 15px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* -------------------------------------------------------------------------
 * Ordenación
 * ---------------------------------------------------------------------- */

.gy-tour-grid-page #gy-tour-sort-form {
	display: inline-block;
	margin: 0;
}

.gy-tour-grid-page .tp-tour-sort .nice-select {
	float: none;
	display: inline-block;
	min-width: 225px;
}

.gy-tour-grid-page .tp-tour-sort .nice-select .list {
	z-index: 9999;
}

/* -------------------------------------------------------------------------
 * Tarjetas
 * ---------------------------------------------------------------------- */

.gy-tour-grid-page .tp-tour-wishlist {
	padding: 0;
	border: 0;
}

.gy-tour-grid-page .tp-tour-wishlist.is-active {
	background: var(--tp-theme-1);
	color: var(--tp-common-white);
}

.gy-tour-grid-page .tp-tour-wishlist.is-active svg path {
	fill: currentColor;
}

.gy-tour-grid-page .tp-tour-info > span:first-child {
	display: block;
	margin-bottom: 4px;
}

.gy-tour-grid-page .tp-tour-info > span:not(:last-child) {
	margin-right: 12px;
}

.gy-tour-grid-page .tp-tour-info > span svg {
	margin-right: 6px;
	transform: translateY(-1px);
}

/* -------------------------------------------------------------------------
 * Estado vacío
 * ---------------------------------------------------------------------- */

.gy-tour-grid-page .gy-tours-empty {
	max-width: 620px;
	margin: 20px auto 70px;
	padding: 56px 32px;
	border: 1px solid rgba(7, 21, 22, 0.09);
	border-radius: 24px;
	background: #f8fbf9;
}

.gy-tour-grid-page .gy-tours-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin-bottom: 22px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 10px 30px -14px rgba(7, 21, 22, 0.35);
	color: var(--tp-theme-1);
	font-size: 28px;
}

.gy-tour-grid-page .gy-tours-empty h2 {
	margin-bottom: 12px;
	font-size: 32px;
}

.gy-tour-grid-page .gy-tours-empty p {
	max-width: 440px;
	margin: 0 auto 26px;
	color: var(--tp-grey-1);
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */

@media (max-width: 991px) {
	.gy-tour-grid-page .gy-clear-filters {
		display: block;
		margin: 10px 0 0;
	}

	.gy-tour-grid-page .tp-tour-filter-result {
		display: inline-block;
		margin-top: 4px;
	}
}

@media (max-width: 767px) {
	.gy-tour-grid-page .tp-booking-wrap {
		width: 100%;
	}

	.gy-tour-grid-page .tp-booking-location,
	.gy-tour-grid-page .tp-booking-location-input {
		width: 100%;
	}

	.gy-tour-grid-page .tp-booking-location-list,
	.gy-tour-grid-page .tp-booking-quantity-wrap {
		width: min(320px, calc(100vw - 40px));
	}

	.gy-tour-grid-page .tp-tour-sort {
		justify-content: flex-start !important;
	}

	.gy-tour-grid-page .tp-tour-sort .nice-select {
		min-width: 0;
		width: 100%;
	}

	.gy-tour-grid-page #gy-tour-sort-form {
		display: block;
		width: 100%;
	}

	.gy-tour-grid-page .gy-tours-empty {
		padding: 42px 22px;
	}

	.gy-tour-grid-page .gy-tours-empty h2 {
		font-size: 26px;
	}
}
