/* Guainía Travel – Buscador de Tours (mobile-first, 100% responsivo)
   Paleta tomada del logo: naranja, morado de los Cerros de Mavecure,
   azul del río y verde de la selva. */

.bt-widget {
	--bt-orange: #f69612;
	--bt-orange-deep: #ea4e12;
	--bt-purple: #7e1e72;
	--bt-purple-dark: #5a124e;
	--bt-blue: #364e96;
	--bt-green: #128a36;
	--bt-green-dark: #12662a;
	--bt-wa: #25d366;
	--bt-wa-dark: #1ebe5d;

	--bt-ink: #2b1530;
	--bt-muted: #65586a;
	--bt-line: #e6dde8;
	--bt-surface: #ffffff;
	--bt-soft: #faf5fb;
	--bt-radius: 12px;

	box-sizing: border-box;
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 16px;
	color: var(--bt-ink);
	font-family: inherit;
	line-height: 1.5;
}

.bt-widget *,
.bt-widget *::before,
.bt-widget *::after {
	box-sizing: border-box;
}

.bt-title {
	margin: 0 0 14px;
	font-size: clamp(1.3rem, 4.8vw, 1.85rem);
	line-height: 1.2;
	color: var(--bt-purple);
}

/* ---------- Formulario de búsqueda ---------- */

.bt-form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 16px 16px;
	background: var(--bt-soft);
	border: 1px solid var(--bt-line);
	border-radius: var(--bt-radius);
	overflow: hidden;
}

/* Franja de cuatro colores, como el logo: naranja, morado, azul y verde */
.bt-form::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	background: linear-gradient(90deg, var(--bt-orange) 0 25%, var(--bt-purple) 25% 50%, var(--bt-blue) 50% 75%, var(--bt-green) 75% 100%);
}

.bt-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	flex: 1 1 auto;
}

.bt-field label {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--bt-purple-dark);
}

.bt-date {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	font-size: 16px; /* evita el zoom automático en iOS */
	font-family: inherit;
	color: var(--bt-ink);
	background: var(--bt-surface);
	border: 2px solid var(--bt-line);
	border-radius: 8px;
}

.bt-date:focus {
	border-color: var(--bt-blue);
	outline: 0;
}

.bt-search-btn {
	min-height: 48px;
	padding: 10px 28px;
	font-size: 1rem;
	font-weight: 800;
	font-family: inherit;
	color: var(--bt-purple-dark);
	background: var(--bt-orange);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.bt-search-btn:hover {
	background: #ffa92e;
}

.bt-search-btn[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.bt-date:focus-visible,
.bt-search-btn:focus-visible,
.bt-wa:focus-visible {
	outline: 3px solid var(--bt-blue);
	outline-offset: 2px;
}

.bt-help {
	margin: 10px 2px 0;
	font-size: 0.875rem;
	color: var(--bt-muted);
}

/* ---------- Resultados ---------- */

.bt-results {
	margin-top: 18px;
}

.bt-widget.is-loading .bt-results {
	opacity: 0.55;
	transition: opacity 0.15s ease;
}

.bt-week {
	margin: 0 0 12px;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--bt-blue);
}

.bt-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bt-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
	background: var(--bt-surface);
	border: 1px solid var(--bt-line);
	border-left: 5px solid var(--bt-orange);
	border-radius: var(--bt-radius);
}

.bt-card--first {
	border-color: var(--bt-purple);
	border-left-color: var(--bt-purple);
	box-shadow: 0 0 0 1px var(--bt-purple);
}

.bt-card__main {
	min-width: 0;
}

.bt-tag {
	display: inline-block;
	margin-bottom: 8px;
	padding: 3px 12px;
	font-size: 0.8rem;
	font-weight: 700;
	color: #fff;
	background: var(--bt-purple);
	border-radius: 999px;
}

.bt-card__title {
	margin: 0 0 8px;
	font-size: 1.2rem;
	line-height: 1.3;
	color: var(--bt-purple-dark);
	overflow-wrap: anywhere;
}

.bt-card__desc {
	margin: 0 0 12px;
	font-size: 0.95rem;
	color: var(--bt-muted);
}

.bt-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
	margin: 0;
}

.bt-meta > div {
	min-width: 0;
}

.bt-meta > div:last-child {
	grid-column: 1 / -1;
}

.bt-meta dt {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--bt-blue);
}

.bt-meta dd {
	margin: 0;
	font-weight: 600;
}

/* La duración destaca con el verde de la selva */
.bt-meta > div:last-child dd {
	display: inline-block;
	padding: 1px 10px;
	color: var(--bt-green-dark);
	background: #e8f5ec;
	border-radius: 6px;
}

.bt-card__side {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 14px;
	border-top: 2px dashed var(--bt-line);
}

.bt-price {
	font-size: 1.55rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--bt-orange-deep);
}

/* ---------- Botón oficial de WhatsApp ---------- */

.bt-wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 12px 18px;
	font-size: 1.05rem;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	background: var(--bt-wa);
	border-radius: 8px;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
	transition: background-color 0.15s ease;
}

.bt-wa:hover,
.bt-wa:focus {
	color: #fff;
	background: var(--bt-wa-dark);
}

.bt-wa svg {
	flex: 0 0 auto;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

/* ---------- Mensajes ---------- */

.bt-empty,
.bt-notice {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 16px;
	text-align: center;
	background: var(--bt-soft);
	border: 2px dashed var(--bt-orange);
	border-radius: var(--bt-radius);
}

.bt-empty strong {
	font-size: 1.2rem;
	color: var(--bt-purple);
}

.bt-empty span {
	font-size: 0.9rem;
	color: var(--bt-muted);
}

.bt-notice--error {
	border-color: var(--bt-orange-deep);
	color: var(--bt-orange-deep);
}

/* ---------- Tablet ---------- */

@media (min-width: 600px) {
	.bt-widget {
		padding: 24px;
	}

	.bt-form {
		flex-direction: row;
		align-items: flex-end;
		gap: 16px;
		padding: 24px 20px 20px;
	}

	.bt-search-btn {
		flex: 0 0 auto;
	}

	.bt-meta {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bt-meta > div:last-child {
		grid-column: auto;
	}
}

/* ---------- Escritorio ---------- */

@media (min-width: 760px) {
	.bt-card {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		padding: 20px 24px;
	}

	.bt-card__main {
		flex: 1 1 auto;
	}

	.bt-card__side {
		flex: 0 0 260px;
		align-items: stretch;
		padding-top: 0;
		padding-left: 24px;
		border-top: 0;
		border-left: 2px dashed var(--bt-line);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bt-search-btn,
	.bt-wa,
	.bt-widget.is-loading .bt-results {
		transition: none;
	}
}
