/* HT Trek Engine — Frontend Styles */

/* Departure widget container */
.ht-departure-widget {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ht-departure-widget__header {
	background: linear-gradient(135deg, #0F766E 0%, #0d6660 100%);
	color: #fff;
	padding: 16px 20px;
}

.ht-departure-widget__header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.ht-departure-widget__empty {
	padding: 24px 20px;
	text-align: center;
	color: #64748b;
}

/* Departure rows */
.ht-departure-row {
	padding: 14px 18px;
	border-bottom: 1px solid #f1f5f9;
	cursor: pointer;
	transition: background 0.15s;
	position: relative;
}

.ht-departure-row:last-child { border-bottom: none; }
.ht-departure-row:hover { background: #f8fafc; }

.ht-departure-row.selected {
	background: #f0fdfa;
	border-left: 3px solid #0F766E;
	padding-left: 15px;
}

.ht-dep-row__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 6px;
}

.ht-dep-dates {
	font-weight: 600;
	font-size: 14px;
	color: #1e293b;
}

.ht-dep-price {
	font-size: 15px;
	font-weight: 700;
	color: #0F766E;
}

.ht-dep-price .original {
	font-size: 12px;
	color: #94a3b8;
	text-decoration: line-through;
	display: block;
	font-weight: 400;
}

.ht-dep-row__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: #64748b;
	margin-bottom: 6px;
}

/* Seats bar */
.ht-dep-seats-bar {
	height: 5px;
	background: #e2e8f0;
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 4px;
}

.ht-dep-seats-fill {
	height: 100%;
	border-radius: 3px;
	background: #0F766E;
	transition: width 0.4s ease;
}

.ht-dep-seats-fill.urgent { background: #ef4444; }
.ht-dep-seats-fill.filling { background: #f59e0b; }

.ht-dep-seats-text {
	font-size: 11px;
	color: #64748b;
}

.ht-dep-seats-text.urgent-text { color: #ef4444; font-weight: 600; }

/* Status badges */
.ht-dep-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ht-dep-status--open         { background: #dcfce7; color: #166534; }
.ht-dep-status--filling_fast { background: #fef9c3; color: #854d0e; }
.ht-dep-status--sold_out     { background: #fee2e2; color: #991b1b; }

/* Widget book button */
.ht-widget-book-btn {
	display: block;
	width: 100%;
	padding: 12px;
	background: #FF7F50;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	border: none;
	cursor: pointer;
	text-align: center;
	transition: background 0.15s;
	font-family: inherit;
}

.ht-widget-book-btn:hover { background: #e6623b; }
.ht-widget-book-btn[hidden] { display: none; }

/* Waitlist form */
.ht-waitlist-section {
	padding: 16px 18px;
	border-top: 1px solid #f1f5f9;
	background: #fafafa;
}

.ht-waitlist-section h4 {
	margin: 0 0 10px;
	font-size: 14px;
	color: #374151;
}

.ht-waitlist-form__group {
	margin-bottom: 8px;
}

.ht-waitlist-form__group label {
	display: block;
	font-size: 12px;
	color: #64748b;
	margin-bottom: 3px;
}

.ht-waitlist-form__group input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 13px;
	box-sizing: border-box;
}

.ht-waitlist-form__group input:focus {
	outline: none;
	border-color: #0F766E;
}

.ht-waitlist-submit {
	width: 100%;
	padding: 10px;
	background: #0F766E;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	font-family: inherit;
	transition: background 0.15s;
}

.ht-waitlist-submit:hover { background: #0d6660; }

.ht-waitlist-status {
	margin-top: 8px;
	font-size: 13px;
	color: #0F766E;
}

.ht-waitlist-status.error { color: #dc2626; }

/* Honeypot */
.ht-hp-field { display: none !important; }
