/* Bha.HostawayConnect — the host-facing Connect Hostaway workspace surface.
   Scoped under .bha-hac. Reuses the workspace teal system. Loaded only when the
   certification gate is open (Config::is_onboarding_enabled). */

.bha-hac-surface { padding: 8px 4px 40px; }
.bha-hac {
	position: relative;
	max-width: 760px;
	margin: 0 auto;
	--hac-teal: #1097c5;
	--hac-teal-dark: #0d7fa8;
	--hac-teal-deep: #0a4a5e;
	--hac-teal-tint: #f0f7fa;
	--hac-teal-paler: #dbeef5;
	--hac-n200: #e5e7eb;
	--hac-n300: #cbd5e1;
	--hac-n500: #6b7280;
	--hac-n900: #0f172a;
	--hac-green: #16a34a;
	--hac-green-tint: #dcfce7;
	--hac-green-deep: #14532d;
	--hac-red: #dc2626;
	color: var(--hac-n900);
}

.bha-hac__close {
	position: absolute; top: -2px; right: 0;
	width: 32px; height: 32px; border-radius: 8px;
	border: 1px solid var(--hac-n200); background: #fff;
	color: var(--hac-n500); font-size: 16px; cursor: pointer; line-height: 1;
}
.bha-hac__close:hover { background: var(--hac-teal-tint); color: var(--hac-teal-deep); }

/* Stepper */
.bha-hac__stepper { display: flex; align-items: center; margin: 4px 0 24px; padding-right: 40px; }
.bha-hac__pip { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; flex: none; }
.bha-hac__dot {
	width: 30px; height: 30px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 700;
	background: #fff; border: 2px solid var(--hac-n300); color: #94a3b8;
	transition: all .15s;
}
.bha-hac__pip-label { font-size: 11px; font-weight: 600; color: #94a3b8; }
.bha-hac__pip.is-active .bha-hac__dot { border-color: var(--hac-teal); background: var(--hac-teal); color: #fff; box-shadow: 0 0 0 4px rgba(16,151,197,.15); }
.bha-hac__pip.is-active .bha-hac__pip-label { color: var(--hac-teal-deep); }
.bha-hac__pip.is-done .bha-hac__dot { border-color: var(--hac-teal); background: var(--hac-teal-tint); color: var(--hac-teal); }
.bha-hac__pip.is-done .bha-hac__pip-label { color: var(--hac-teal-deep); }
.bha-hac__line { flex: 1; height: 2px; background: var(--hac-n200); margin-bottom: 22px; min-width: 10px; }
.bha-hac__line.is-done { background: #a8d6e6; }

.bha-hac__body h1 { font-size: 22px; font-weight: 700; color: var(--hac-teal-deep); margin: 0 0 6px; }
.bha-hac__lead { color: var(--hac-n500); margin: 0 0 20px; }
.bha-hac__loading { color: var(--hac-n500); padding: 30px 0; text-align: center; }
.bha-hac__note { font-size: 13px; color: var(--hac-n500); margin: 12px 0; }

/* Hero + values (step 1) */
.bha-hac__hero { background: linear-gradient(135deg, var(--hac-teal-deep), var(--hac-teal)); color: #fff; border-radius: 16px; padding: 28px; }
.bha-hac__hero h1 { color: #fff; font-size: 25px; margin: 8px 0; }
.bha-hac__hero p { margin: 0; color: rgba(255,255,255,.9); max-width: 520px; }
.bha-hac__eyebrow { display: inline-block; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.16); padding: 5px 12px; border-radius: 9999px; }
.bha-hac__values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 6px; }
.bha-hac__value { background: #fff; border: 1px solid var(--hac-n200); border-radius: 12px; padding: 16px; }
.bha-hac__value-t { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.bha-hac__value-d { font-size: 12.5px; color: var(--hac-n500); }

/* Buttons */
.bha-hac__btnrow { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.bha-hac__btn { padding: 11px 18px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.bha-hac__btn--primary { background: var(--hac-teal); color: #fff; }
.bha-hac__btn--primary:hover { background: var(--hac-teal-dark); }
.bha-hac__btn--primary:disabled { background: var(--hac-n300); cursor: default; }
.bha-hac__btn--secondary { background: #fff; color: #334155; border-color: var(--hac-n300); }
.bha-hac__btn--danger { background: #fff; color: var(--hac-red); border-color: var(--hac-red); }
.bha-hac__btn--danger:hover { background: var(--hac-red); color: #fff; }
.bha-hac__discrow { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--hac-n200); }
.bha-hac__disclink { background: none; border: none; padding: 0; font: inherit; font-size: 13px; color: var(--hac-n500); text-decoration: underline; cursor: pointer; }
.bha-hac__disclink:hover { color: var(--hac-red); }

/* Connect form (step 2) */
.bha-hac__field { margin-bottom: 16px; }
.bha-hac__field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.bha-hac__field input { width: 100%; padding: 11px 12px; border: 1px solid var(--hac-n300); border-radius: 10px; font: inherit; font-size: 14px; background: #f9fafb; }
.bha-hac__field input:focus { outline: none; border-color: var(--hac-teal); background: #fff; box-shadow: 0 0 0 2px rgba(16,151,197,.15); }
.bha-hac__hint { font-size: 12px; color: var(--hac-n500); margin: -6px 0 14px; }
.bha-hac__reassure { display: flex; gap: 10px; background: var(--hac-teal-tint); border: 1px solid var(--hac-teal-paler); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: var(--hac-teal-deep); }
.bha-hac__status { font-size: 13px; margin: 12px 0 0; min-height: 1px; }
.bha-hac__status.is-error { color: var(--hac-red); }

/* Preview (step 3) */
.bha-hac__summary { display: flex; align-items: center; gap: 12px; background: var(--hac-green-tint); border: 1px solid #bbf7d0; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.bha-hac__summary-big { font-size: 22px; font-weight: 800; color: var(--hac-green-deep); }
.bha-hac__summary-txt { font-size: 13.5px; color: var(--hac-green-deep); }
.bha-hac__selbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 10px; border: 1px dashed var(--hac-n300); border-radius: 10px; }
.bha-hac__selbar label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; cursor: pointer; }
.bha-hac__selbar input, .bha-hac__lcheck input { width: 18px; height: 18px; accent-color: var(--hac-teal); cursor: pointer; }

.bha-hac__selcount { margin-left: auto; font-weight: 700; font-size: 13px; color: var(--hac-teal-deep); }

/* Preview title filter (step 3) */
.bha-hac__toolbar { margin: 0 0 12px; }
.bha-hac__search { width: 100%; max-width: 320px; padding: 9px 12px; border: 1px solid var(--hac-n300); border-radius: 10px; font: inherit; font-size: 14px; background: #fff; color: inherit; }
.bha-hac__search:focus { outline: none; border-color: var(--hac-teal); box-shadow: 0 0 0 2px var(--hac-teal-paler); }
.bha-hac__noresults { color: var(--hac-n500); font-size: 13.5px; padding: 8px 2px; }
@media (max-width: 768px) { .bha-hac__search { max-width: none; } }
.bha-hac__lrow { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid var(--hac-n200); border-radius: 12px; margin-bottom: 8px; }
.bha-hac__lrow.is-out { opacity: .62; background: #f9fafb; }
.bha-hac__lcheck { flex: none; display: flex; align-items: center; }
.bha-hac__lmain { flex: 1; min-width: 0; }
.bha-hac__ltitle { font-weight: 600; font-size: 14px; }
.bha-hac__lmeta { font-size: 12.5px; color: var(--hac-n500); margin-top: 2px; }
.bha-hac__lreason { font-size: 12px; color: var(--hac-red); font-weight: 600; margin-top: 2px; }
.bha-hac__badge { flex: none; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 9999px; background: #f1f5f9; color: var(--hac-n500); white-space: nowrap; }
.bha-hac__badge--imported { background: var(--hac-green-tint); color: var(--hac-green-deep); }
.bha-hac__lrow.is-imported { background: #f8fafc; }
.bha-hac__notecard { display: flex; gap: 11px; background: var(--hac-teal-tint); border: 1px solid var(--hac-teal-paler); border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: 13px; color: var(--hac-teal-deep); }
.bha-hac__noteicon { flex: none; }

/* Imported (step 4) */
.bha-hac__donehead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.bha-hac__donecheck { width: 46px; height: 46px; border-radius: 50%; background: var(--hac-green-tint); color: var(--hac-green); display: flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.bha-hac__nstep { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--hac-n200); border-radius: 12px; margin-bottom: 10px; }
.bha-hac__nnum { width: 30px; height: 30px; border-radius: 9px; background: var(--hac-teal-tint); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.bha-hac__nt { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.bha-hac__nd { font-size: 13px; color: var(--hac-n500); }

/* Import progress (step 4, before the summary) */
.bha-hac__prog { margin: 4px 0 8px; }
.bha-hac__prow {
	display: flex; align-items: center; gap: 14px;
	padding: 12px 14px; margin-bottom: 8px;
	border: 1px solid var(--hac-n200); border-radius: 12px;
	transition: border-color .15s, background .15s;
}
.bha-hac__prow.is-active { border-color: var(--hac-teal); background: var(--hac-teal-tint); }
.bha-hac__prow.is-done { border-color: #bbf7d0; background: var(--hac-green-tint); }
.bha-hac__prow.is-skip { opacity: .7; background: #f9fafb; }
.bha-hac__prow.is-fail { border-color: #fecaca; background: #fef2f2; }
.bha-hac__pmain { flex: 1; min-width: 0; }
.bha-hac__ptitle {
	font-weight: 600; font-size: 14px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bha-hac__pstatus { flex: none; display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; }
.bha-hac__pstatus.is-wait { color: #94a3b8; }
.bha-hac__pstatus.is-active { color: var(--hac-teal-deep); }
.bha-hac__pstatus.is-done { color: var(--hac-green-deep); }
.bha-hac__pstatus.is-skip { color: var(--hac-n500); }
.bha-hac__pstatus.is-fail { color: var(--hac-red); }
.bha-hac__picon { display: inline-flex; align-items: center; justify-content: center; }
.bha-hac__picon--spin {
	width: 14px; height: 14px; border-radius: 50%;
	border: 2px solid var(--hac-teal-paler); border-top-color: var(--hac-teal);
	animation: bha-hac-spin .7s linear infinite;
}
@keyframes bha-hac-spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
	.bha-hac__values { grid-template-columns: 1fr; }
	.bha-hac__pip-label { display: none; }
}

/* -- Hostaway connect discovery banner ---------------------------------------
   Rendered at the top of the My-listings grid by listing-tiles.js. Styled here
   so it only loads when the cert gate is open, matching the banner's own
   visibility gate. It sits in .bha-listing-tiles (not .bha-hac), so the teal
   palette is inlined rather than referenced via the --hac-* vars. */
.bha-hostaway-banner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin: 0 0 16px;
	padding: 14px 44px 14px 16px;
	border: 1px solid #dbeef5;
	background: #f0f7fa;
	border-radius: 12px;
}
.bha-hostaway-banner__body { flex: 1 1 240px; min-width: 200px; }
.bha-hostaway-banner__title { font-weight: 700; color: #0a4a5e; margin-bottom: 2px; }
.bha-hostaway-banner__sub { font-size: 13px; color: #6b7280; line-height: 1.35; }
.bha-hostaway-banner__connect { flex: 0 0 auto; white-space: nowrap; }
.bha-hostaway-banner__dismiss {
	position: absolute; top: 8px; right: 8px;
	width: 26px; height: 26px; border-radius: 7px;
	border: 1px solid transparent; background: transparent;
	color: #6b7280; font-size: 16px; line-height: 1; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.bha-hostaway-banner__dismiss:hover { background: #dbeef5; color: #0a4a5e; }
