/* Product card (2026-11-18): the plantrip whitelabels' card (tourcracker resources/css/wl-cards.css,
   .exc-card) with the site's colors, for the destination listing (resources/js/service.js) and
   the related products of the detail page (app/views/detail.php). Every card is a .wl-card holder
   around a real link to detalle.php, so it works with the keyboard and in any container. */

.wl-cards, .wl-card {
	--tcd-blue: #7a42f4;
	--tcd-blue-soft: #f1ebfe;
	--tcd-cta: #7a42f4;
	--tcd-cta-hover: #6430d9;
	--tcd-cta-ink: #ffffff;
	--tcd-ink: #1c2532;
	--tcd-muted: #5e6b7b;
	--tcd-bad: #b4372d;
}
.wl-cards .wl-card-col { margin-bottom: 24px; }
.wl-card { position: relative; display: flex; height: 100%; font-family: "Figtree", "Helvetica Neue", Arial, sans-serif; }
.wl-card > .exc-card {
	position: relative; flex: 1 1 auto; min-width: 0;
	background: #fff; border-radius: 12px; overflow: hidden;
	box-shadow: 0 2px 10px rgba(16, 33, 60, .10);
	display: flex; flex-direction: column;
	color: var(--tcd-ink); text-decoration: none; text-align: left;
	transition: box-shadow .25s ease, transform .25s ease;
}
.wl-card:hover > .exc-card, .wl-card > .exc-card:focus-visible { box-shadow: 0 10px 28px rgba(16, 33, 60, .18); transform: translateY(-5px); color: var(--tcd-ink); text-decoration: none; }
.wl-card > .exc-card:focus-visible { outline: 3px solid var(--tcd-blue); outline-offset: 2px; }
.wl-card .exc-card__img-wrap { position: relative; overflow: hidden; height: 200px; flex-shrink: 0; background: var(--tcd-blue-soft); }
.wl-card .exc-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.wl-card:hover .exc-card__img { transform: scale(1.07); }
.wl-card .exc-card__duration, .wl-card .exc-card__promo {
	position: absolute; font-size: 12px; font-weight: 600; line-height: 1.5;
	padding: 3px 10px; border-radius: 20px; pointer-events: none;
}
.wl-card .exc-card__duration { bottom: 10px; left: 10px; background: rgba(0, 0, 0, .6); color: #fff; backdrop-filter: blur(4px); }
.wl-card .exc-card__promo { top: 10px; left: 10px; background: var(--tcd-bad); color: #fff; }
.wl-card .exc-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.wl-card .exc-card__tag { display: inline-block; margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tcd-blue); }
.wl-card .exc-card__title {
	font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; text-align: left;
	color: var(--tcd-ink); line-height: 1.45; margin: 0 0 14px; min-height: 0; padding: 0;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wl-card .exc-card__footer { display: flex; flex-direction: column; gap: 10px; }
.wl-card .exc-card__price-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.wl-card .exc-card__price-from { font-size: 11px; color: var(--tcd-muted); text-transform: uppercase; letter-spacing: .05em; }
.wl-card .exc-card__price { font-size: 19px; font-weight: 700; color: var(--tcd-ink); }
.wl-card .exc-card__old { font-size: 13px; font-weight: 400; color: var(--tcd-muted); margin-left: 4px; }
.wl-card .exc-card__btn {
	display: block; width: 100%; padding: 10px 14px; border-radius: 8px; text-align: center;
	background: var(--tcd-cta); color: var(--tcd-cta-ink); font-size: 14px; font-weight: 700;
	transition: background .2s ease;
}
.wl-card:hover .exc-card__btn { background: var(--tcd-cta-hover); }

@media (max-width: 575px) {
	.wl-card .exc-card__img-wrap { height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
	.wl-card > .exc-card, .wl-card .exc-card__img { transition: none; }
	.wl-card:hover > .exc-card, .wl-card:hover .exc-card__img { transform: none; }
}

/* Home and destination pages (app/templates/our_select.php, imperdibles_*.php, resources/js/wl-cards.js):
   the "Nuestra elección" chip of the old card, and the theme's .containerCard (grid on desktop,
   swipeable row on phones, where the old .card had a fixed 250px width). */
.wl-card .exc-card__badge {
	position: absolute; top: 10px; left: 10px; pointer-events: none;
	font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .02em;
	padding: 3px 10px; border-radius: 20px; background: #4d2e89; color: #fff;
}
.containerCard > .wl-card { min-width: 0; }
@media (max-width: 768px) {
	.containerCard > .wl-card { flex: 0 0 250px; width: 250px; scroll-snap-align: start; }
	.containerCard > .wl-card:hover > .exc-card { transform: none; }
}
.wl-card .exc-card__badge ~ .exc-card__promo { left: auto; right: 10px; }
